func()

in models/v3/msgs/msgs.go [290:301]


func (n Notifications) sendBlob(store *storage.Client, dataJSON []byte) (*url.URL, error) {
	if n.testSendBlob != nil {
		return n.testSendBlob(store, dataJSON)
	}

	// If store isn't set then this message is too large to send.
	if store == nil {
		return nil, fmt.Errorf("event exceeds max inline size and no storage client provided to store the data in a blob")
	}

	return store.Upload(n.ctx, uuid.New().String(), dataJSON)
}