Documentation ¶
Overview ¶
Package register contains the RegistrationMessage and all helper methods for generating the message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message is a struct that wraps the information required for an api.RegisterMessage to be sent.
func New ¶
func New( cfg config.Conf, hostName, version, buildDate, gitHash string, checkList checks.Checks, startTime time.Time, ) *Message
New returns a Message pre-populated.
func (*Message) Message ¶
func (msg *Message) Message() *api.RegisterMessage
Message returns the actual api.RegisterMessage.
func (*Message) UpdateInfoStat ¶
UpdateInfoStat updates the infostat on the member.
func (*Message) UpdateMessage ¶
func (msg *Message) UpdateMessage() *api.MemberUpdateMessage
UpdateMessage returns the actual api.MemberUpdateMessage.
Click to show internal directories.
Click to hide internal directories.