Documentation ¶
Overview ¶
Copyright (c) 2023 Albert Espín albert@espin.ovh
Copyright (c) 2023 Albert Espín albert@espin.ovh
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAMessage error = errors.New("error data received not a valid message") ErrPayloadMismatch error = errors.New("message payload mismatch") ErrMessageTypeUnknown error = errors.New("message type unknown") )
View Source
var ( // Package is filled at linking time Package = "git.espin.ovh/mercurial" // Version holds the complete version number. Filled in at linking time. Version = "0.0.1-beta" // Revision is filled with the VCS (e.g. git) revision being used to build // the program at linking time. Revision = "" // GoVersion is Go tree's version. GoVersion = runtime.Version() )
Functions ¶
func RandomString ¶
RandomString returns a random string of alphanumeric characters
Types ¶
type Message ¶
type Message struct { Tags tags `json:"tags"` Payload any `json:"payload"` // contains filtered or unexported fields }
func NewMessage ¶
func (*Message) GetPayload ¶
func (*Message) SetPayload ¶
Click to show internal directories.
Click to hide internal directories.