Documentation
¶
Index ¶
Constants ¶
const ( StateSoft = StateType(0) StateHard = StateType(1) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcknowledgementState ¶
type AcknowledgementState uint8
AcknowledgementState specifies an acknowledgement state (yes, no, sticky).
func (*AcknowledgementState) UnmarshalJSON ¶
func (as *AcknowledgementState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*AcknowledgementState) UnmarshalText ¶
func (as *AcknowledgementState) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type CommentType ¶
type CommentType uint8
CommentType specifies a comment's origin's kind.
func (*CommentType) UnmarshalJSON ¶
func (ct *CommentType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*CommentType) UnmarshalText ¶
func (ct *CommentType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type NotificationStates ¶
type NotificationStates uint8
NotificationStates specifies the set of states a notification may be sent for.
func (*NotificationStates) UnmarshalJSON ¶
func (nst *NotificationStates) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NotificationStates) UnmarshalText ¶
func (nst *NotificationStates) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type NotificationType ¶
type NotificationType uint16
NotificationType specifies the reason of a sent notification.
func (*NotificationType) UnmarshalText ¶
func (nt *NotificationType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type NotificationTypes ¶
type NotificationTypes uint16
NotificationTypes specifies the set of reasons a notification may be sent for.
func (*NotificationTypes) UnmarshalJSON ¶
func (nt *NotificationTypes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NotificationTypes) UnmarshalText ¶
func (nt *NotificationTypes) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type StateType ¶
type StateType uint8
StateType specifies a state's hardness.
func (*StateType) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*StateType) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.