types

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: GPL-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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.

func (AcknowledgementState) Value

func (as AcknowledgementState) Value() (driver.Value, error)

Value implements the driver.Valuer 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.

func (CommentType) Value

func (ct CommentType) Value() (driver.Value, error)

Value implements the driver.Valuer 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.

func (NotificationStates) Value

func (nst NotificationStates) Value() (driver.Value, error)

Value implements the driver.Valuer 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.

func (NotificationType) Value

func (nt NotificationType) Value() (driver.Value, error)

Value implements the driver.Valuer 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.

func (NotificationTypes) Value

func (nt NotificationTypes) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type StateType

type StateType uint8

StateType specifies a state's hardness.

func (*StateType) UnmarshalJSON

func (st *StateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*StateType) UnmarshalText

func (st *StateType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

func (StateType) Value

func (st StateType) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL