Documentation ¶
Index ¶
Constants ¶
View Source
const ErrIgnoredChannel = channelError("channel ignored")
ErrIgnoredChannel is returned when the chennel is to be ignored.
View Source
const HeartbeatChannel = "heartbeat"
HeartbeatChannel is theCentrifugo channel name for heartbeat messages.
View Source
const NsSeparator = ":"
NsSeparator is the channel namespace boundary character.
Variables ¶
This section is empty.
Functions ¶
func PublishStatus ¶ added in v0.5.0
PublishStatus publishes the status of the service to Centrifugo heartbeat channel.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel represents a Centrifugo channel suitable for OPC-UA use.
func ParseChannel ¶
ParseChannel parses a Centrifugo channel and creates a Channel structure.
See "Specifications" section in README.md for the format of the channel.
type Publisher ¶ added in v0.5.0
type Publisher interface {
Publish(ctx context.Context, channel string, data []byte, opts ...gocent.PublishOption) (gocent.PublishResult, error)
}
Publisher is a consumer contract modelling a Centrifugo publisher.
type StateProvider ¶ added in v0.5.0
StateProvider is a consumer contract modelling an OPC-UA client.
Click to show internal directories.
Click to hide internal directories.