Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EVENT = string(List[LEvent]) OK = string(List[LOK]) REQ = string(List[LReq]) NOTICE = string(List[LNotice]) EOSE = string(List[LEOSE]) CLOSE = string(List[LClose]) CLOSED = string(List[LClosed]) COUNT = string(List[LCount]) AUTH = string(List[LAuth]) )
With these, labels have easy short names for the strings, as well as neat consistent 1 byte enum version. Having all 3 versions also makes writing the recogniser easier.
View Source
var List = EnvelopeLabel{ LNil: nil, LEvent: []byte("EVENT"), LOK: []byte("OK"), LNotice: []byte("NOTICE"), LEOSE: []byte("EOSE"), LClose: []byte("CLOSE"), LClosed: []byte("CLOSED"), LReq: []byte("REQ"), LCount: []byte("COUNT"), LAuth: []byte("AUTH"), }
List is the nip1 envelope labels, matching the above enums.
Functions ¶
This section is empty.
Types ¶
type EnvelopeLabel ¶
func (EnvelopeLabel) String ¶
func (l EnvelopeLabel) String() (s string)
Click to show internal directories.
Click to hide internal directories.