Documentation
¶
Index ¶
Constants ¶
View Source
const (
RandomDelivery types.DeliveryMethod = "random"
)
Variables ¶
View Source
var (
ErrInvalidDeliveryMethod = errors.New("Error: invalid delivery method..")
)
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel string
const ( ChanPrefix = "bn_" ChanDiscovery Channel = ChanPrefix + "discovery" ChanMessage Channel = ChanPrefix + "msg" ChanMessageResponse Channel = ChanPrefix + "msg_res" ChanStorage Channel = ChanPrefix + "storage" )
type PayloadDiscovery ¶
type PayloadDiscovery struct {
Blocks map[types.BlockName][]types.ActionName `json:"blocks"`
Event Event `json:"event"`
}
type PayloadMessage ¶
type PayloadMessage struct {
Data any `json:"data"`
}
func NewPayloadMessage ¶
func NewPayloadMessage(data any) PayloadMessage
func (*PayloadMessage) JSON ¶
func (pa *PayloadMessage) JSON() ([]byte, error)
type Redis ¶
type Redis struct {
Transporter
// contains filtered or unexported fields
}
func (*Redis) Disconnect ¶
type SubDaemon ¶
type SubDaemon struct {
// contains filtered or unexported fields
}
func NewSubDaemon ¶
Click to show internal directories.
Click to hide internal directories.