Documentation ¶
Index ¶
- func InitializeGobRegistry()
- type Args
- type ArgsDynamicPart
- type Buffer
- type ByteType
- type Byteable
- type BytesMessage
- type BytesPart
- type Condition
- type Context
- type Countable
- type Description
- func (description Description) Encode() (string, error)
- func (description Description) MessagesFromArgs(args *Args, context *Context) []Message
- func (description Description) Parse(buffer *Buffer, args *Args, context *Context)
- func (description Description) Validate(buffer *Buffer, context *Context) Validity
- type DynamicPart
- type Empty
- type EnumeratedByteType
- type EqualsCondition
- type FixedByteType
- type FixedStringType
- type GreaterCondition
- type Instance
- type LesserCondition
- type Message
- type Messageable
- type Monolith
- type Parseable
- type RandomByteType
- type RandomEnumeratedByteType
- type SemanticByteType
- type SemanticIntConsumerByteType
- func (bt SemanticIntConsumerByteType) ByteFromArgs(_ *Args, context *Context) (byte, error)
- func (bt SemanticIntConsumerByteType) Count() int
- func (bt SemanticIntConsumerByteType) Parse(buffer *Buffer, args *Args, context *Context)
- func (bt SemanticIntConsumerByteType) Validate(buffer *Buffer, context *Context) Validity
- type SemanticIntConsumerOptionalPart
- func (part *SemanticIntConsumerOptionalPart) Count() int
- func (part *SemanticIntConsumerOptionalPart) Fix(n int) *BytesPart
- func (part *SemanticIntConsumerOptionalPart) MessageFromArgs(args *Args, context *Context) Message
- func (part *SemanticIntConsumerOptionalPart) Parse(buffer *Buffer, args *Args, context *Context)
- func (part *SemanticIntConsumerOptionalPart) Validate(buffer *Buffer, context *Context) Validity
- type SemanticIntProducerByteType
- func (bt SemanticIntProducerByteType) ByteFromArgs(args *Args, context *Context) (byte, error)
- func (bt SemanticIntProducerByteType) Count() int
- func (bt SemanticIntProducerByteType) Parse(buffer *Buffer, _ *Args, context *Context)
- func (bt SemanticIntProducerByteType) Validate(buffer *Buffer, context *Context) Validity
- type SemanticLengthConsumerDynamicPart
- func (part *SemanticLengthConsumerDynamicPart) Count() int
- func (part *SemanticLengthConsumerDynamicPart) Fix(n int) BytesPart
- func (part *SemanticLengthConsumerDynamicPart) MessageFromArgs(args *Args, context *Context) Message
- func (part *SemanticLengthConsumerDynamicPart) Parse(buffer *Buffer, args *Args, context *Context)
- func (part *SemanticLengthConsumerDynamicPart) Validate(buffer *Buffer, context *Context) Validity
- type SemanticSeedConsumerDynamicPart
- func (part *SemanticSeedConsumerDynamicPart) Count() int
- func (part *SemanticSeedConsumerDynamicPart) Fix(seed int) BytesPart
- func (part *SemanticSeedConsumerDynamicPart) MessageFromArgs(args *Args, context *Context) Message
- func (part *SemanticSeedConsumerDynamicPart) Parse(buffer *Buffer, args *Args, context *Context)
- func (part *SemanticSeedConsumerDynamicPart) Validate(buffer *Buffer, context *Context) Validity
- type StringMessage
- type StringType
- type StringsPart
- type TimedMessage
- type TimedPart
- type Validateable
- type Validity
- type VariableStringType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeGobRegistry ¶
func InitializeGobRegistry()
Types ¶
type Args ¶
type Args struct { Values []interface{} Index int }
func NewEmptyArgs ¶
func NewEmptyArgs() *Args
type ArgsDynamicPart ¶
type ArgsDynamicPart struct {
Item ByteType
}
func (ArgsDynamicPart) Fix ¶
func (part ArgsDynamicPart) Fix(n int) BytesPart
func (ArgsDynamicPart) MessageFromArgs ¶
func (part ArgsDynamicPart) MessageFromArgs(args *Args, context *Context) Message
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func NewEmptyBuffer ¶
func NewEmptyBuffer() *Buffer
func (*Buffer) PushString ¶ added in v1.0.9
type BytesMessage ¶
type BytesMessage struct {
// contains filtered or unexported fields
}
func (BytesMessage) Bytes ¶
func (message BytesMessage) Bytes() []byte
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewEmptyContext ¶
func NewEmptyContext() *Context
type Description ¶
type Description struct {
Parts []Monolith
}
func DecodeDescription ¶
func DecodeDescription(encoded string) (*Description, error)
func (Description) Encode ¶
func (description Description) Encode() (string, error)
func (Description) MessagesFromArgs ¶
func (description Description) MessagesFromArgs(args *Args, context *Context) []Message
type DynamicPart ¶
type EnumeratedByteType ¶
type EnumeratedByteType struct {
Options []byte
}
func (EnumeratedByteType) ByteFromArgs ¶
func (bt EnumeratedByteType) ByteFromArgs(args *Args, _ *Context) (byte, error)
func (EnumeratedByteType) Count ¶
func (bt EnumeratedByteType) Count() int
type EqualsCondition ¶
type EqualsCondition struct {
// contains filtered or unexported fields
}
func (EqualsCondition) Evaluate ¶
func (cond EqualsCondition) Evaluate(value interface{}) bool
type FixedByteType ¶
type FixedByteType struct {
Byte byte
}
func (FixedByteType) ByteFromArgs ¶
func (bt FixedByteType) ByteFromArgs(_ *Args, _ *Context) (byte, error)
func (FixedByteType) Count ¶
func (bt FixedByteType) Count() int
type FixedStringType ¶
type FixedStringType struct {
String string
}
func (FixedStringType) Count ¶
func (f FixedStringType) Count() int
func (FixedStringType) Parse ¶
func (f FixedStringType) Parse(buffer *Buffer, args *Args, context *Context)
func (FixedStringType) StringFromArgs ¶
func (f FixedStringType) StringFromArgs(args *Args, context *Context) (string, error)
type GreaterCondition ¶
type GreaterCondition struct {
// contains filtered or unexported fields
}
func (GreaterCondition) Evaluate ¶
func (cond GreaterCondition) Evaluate(value interface{}) bool
type LesserCondition ¶
type LesserCondition struct {
// contains filtered or unexported fields
}
func (LesserCondition) Evaluate ¶
func (cond LesserCondition) Evaluate(value interface{}) bool
type Messageable ¶
type Monolith ¶
type Monolith interface { Messageable Parseable Validateable }
type RandomByteType ¶
type RandomByteType struct { }
func (RandomByteType) ByteFromArgs ¶
func (bt RandomByteType) ByteFromArgs(args *Args, _ *Context) (byte, error)
func (RandomByteType) Count ¶
func (bt RandomByteType) Count() int
type RandomEnumeratedByteType ¶
type RandomEnumeratedByteType struct {
RandomOptions []byte
}
func (RandomEnumeratedByteType) ByteFromArgs ¶
func (bt RandomEnumeratedByteType) ByteFromArgs(args *Args, _ *Context) (byte, error)
func (RandomEnumeratedByteType) Count ¶
func (bt RandomEnumeratedByteType) Count() int
type SemanticByteType ¶
type SemanticByteType struct { }
type SemanticIntConsumerByteType ¶
type SemanticIntConsumerByteType struct {
Name string
}
Consumes an int from a Context
func (SemanticIntConsumerByteType) ByteFromArgs ¶
func (bt SemanticIntConsumerByteType) ByteFromArgs(_ *Args, context *Context) (byte, error)
func (SemanticIntConsumerByteType) Count ¶
func (bt SemanticIntConsumerByteType) Count() int
type SemanticIntConsumerOptionalPart ¶
type SemanticIntConsumerOptionalPart struct { Name string Condition Condition Item BytesPart Cached *BytesPart }
func (*SemanticIntConsumerOptionalPart) Count ¶
func (part *SemanticIntConsumerOptionalPart) Count() int
func (*SemanticIntConsumerOptionalPart) Fix ¶
func (part *SemanticIntConsumerOptionalPart) Fix(n int) *BytesPart
func (*SemanticIntConsumerOptionalPart) MessageFromArgs ¶
func (part *SemanticIntConsumerOptionalPart) MessageFromArgs(args *Args, context *Context) Message
type SemanticIntProducerByteType ¶
Produces an int into a Context
func (SemanticIntProducerByteType) ByteFromArgs ¶
func (bt SemanticIntProducerByteType) ByteFromArgs(args *Args, context *Context) (byte, error)
func (SemanticIntProducerByteType) Count ¶
func (bt SemanticIntProducerByteType) Count() int
type SemanticLengthConsumerDynamicPart ¶
func (*SemanticLengthConsumerDynamicPart) Count ¶
func (part *SemanticLengthConsumerDynamicPart) Count() int
func (*SemanticLengthConsumerDynamicPart) Fix ¶
func (part *SemanticLengthConsumerDynamicPart) Fix(n int) BytesPart
func (*SemanticLengthConsumerDynamicPart) MessageFromArgs ¶
func (part *SemanticLengthConsumerDynamicPart) MessageFromArgs(args *Args, context *Context) Message
type SemanticSeedConsumerDynamicPart ¶
func (*SemanticSeedConsumerDynamicPart) Count ¶
func (part *SemanticSeedConsumerDynamicPart) Count() int
func (*SemanticSeedConsumerDynamicPart) Fix ¶
func (part *SemanticSeedConsumerDynamicPart) Fix(seed int) BytesPart
func (*SemanticSeedConsumerDynamicPart) MessageFromArgs ¶
func (part *SemanticSeedConsumerDynamicPart) MessageFromArgs(args *Args, context *Context) Message
type StringMessage ¶
type StringMessage struct {
String string
}
func (StringMessage) Bytes ¶
func (s StringMessage) Bytes() []byte
type StringType ¶
type StringsPart ¶
type StringsPart struct {
Items []StringType
}
func (StringsPart) MessageFromArgs ¶
func (s StringsPart) MessageFromArgs(args *Args, context *Context) Message
type TimedMessage ¶
type TimedMessage struct { Milliseconds uint // contains filtered or unexported fields }
func (TimedMessage) Bytes ¶
func (message TimedMessage) Bytes() []byte
type TimedPart ¶
func (TimedPart) MessageFromArgs ¶
type Validateable ¶
type VariableStringType ¶
type VariableStringType struct {
EndDelimiter byte
}
func (VariableStringType) Parse ¶
func (f VariableStringType) Parse(buffer *Buffer, args *Args, context *Context)
func (VariableStringType) StringFromArgs ¶
func (f VariableStringType) StringFromArgs(args *Args, context *Context) (string, error)
Click to show internal directories.
Click to hide internal directories.