Documentation ¶
Index ¶
- Constants
- type CallFlag
- func (f CallFlag) Has(cf CallFlag) bool
- func (f CallFlag) MarshalJSON() ([]byte, error)
- func (f CallFlag) MarshalYAML() (interface{}, error)
- func (f CallFlag) String() string
- func (f *CallFlag) UnmarshalJSON(data []byte) error
- func (f *CallFlag) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
View Source
const ( ReadStates CallFlag = 1 << iota WriteStates AllowCall AllowNotify States = ReadStates | WriteStates ReadOnly = ReadStates | AllowCall All = States | AllowCall | AllowNotify NoneFlag CallFlag = 0 )
Default flags.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallFlag ¶
type CallFlag byte
CallFlag represents a call flag.
func FromString ¶ added in v0.95.4
FromString parses an input string and returns a corresponding CallFlag.
func (CallFlag) MarshalJSON ¶ added in v0.95.4
MarshalJSON implements the json.Marshaler interface.
func (CallFlag) MarshalYAML ¶ added in v0.98.2
MarshalYAML implements the YAML marshaler interface.
func (*CallFlag) UnmarshalJSON ¶ added in v0.95.4
UnmarshalJSON implements the json.Unmarshaler interface.
func (*CallFlag) UnmarshalYAML ¶ added in v0.98.2
UnmarshalYAML implements the YAML unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.