Documentation ¶
Index ¶
- type Boilerplate
- func (b *Boilerplate) BoilerplateMessage() string
- func (m *Boilerplate) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Boilerplate) CloneVT() *Boilerplate
- func (this *Boilerplate) EqualMessageVT(thatMsg any) bool
- func (this *Boilerplate) EqualVT(that *Boilerplate) bool
- func (b *Boilerplate) GetDebugVals() directive.DebugValues
- func (x *Boilerplate) GetMessageText() string
- func (b *Boilerplate) GetName() string
- func (b *Boilerplate) GetNetworkedCodec() directive.NetworkedCodec
- func (b *Boilerplate) GetValueOptions() directive.ValueOptions
- func (b *Boilerplate) IsEquivalent(other directive.Directive) bool
- func (x *Boilerplate) MarshalJSON() ([]byte, error)
- func (x *Boilerplate) MarshalProtoJSON(s *json.MarshalState)
- func (x *Boilerplate) MarshalProtoText() string
- func (m *Boilerplate) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Boilerplate) MarshalToVT(dAtA []byte) (int, error)
- func (m *Boilerplate) MarshalVT() (dAtA []byte, err error)
- func (*Boilerplate) ProtoMessage()
- func (x *Boilerplate) Reset()
- func (m *Boilerplate) SizeVT() (n int)
- func (x *Boilerplate) String() string
- func (x *Boilerplate) UnmarshalJSON(b []byte) error
- func (x *Boilerplate) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Boilerplate) UnmarshalVT(dAtA []byte) error
- func (b *Boilerplate) Validate() error
- type BoilerplateResult
- func (m *BoilerplateResult) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *BoilerplateResult) CloneVT() *BoilerplateResult
- func (this *BoilerplateResult) EqualMessageVT(thatMsg any) bool
- func (this *BoilerplateResult) EqualVT(that *BoilerplateResult) bool
- func (x *BoilerplateResult) GetPrintedLen() uint32
- func (x *BoilerplateResult) MarshalJSON() ([]byte, error)
- func (x *BoilerplateResult) MarshalProtoJSON(s *json.MarshalState)
- func (x *BoilerplateResult) MarshalProtoText() string
- func (m *BoilerplateResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *BoilerplateResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *BoilerplateResult) MarshalVT() (dAtA []byte, err error)
- func (*BoilerplateResult) ProtoMessage()
- func (x *BoilerplateResult) Reset()
- func (m *BoilerplateResult) SizeVT() (n int)
- func (x *BoilerplateResult) String() string
- func (x *BoilerplateResult) UnmarshalJSON(b []byte) error
- func (x *BoilerplateResult) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *BoilerplateResult) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boilerplate ¶
type Boilerplate struct { // MessageText is the message to print with the boilerplate. // This is an example field. // The keyword "message" prevents us from using that as the field name. MessageText string `protobuf:"bytes,1,opt,name=message_text,json=messageText,proto3" json:"messageText,omitempty"` // contains filtered or unexported fields }
Boilerplate implements the boilerplate directive.
func (*Boilerplate) BoilerplateMessage ¶
func (b *Boilerplate) BoilerplateMessage() string
BoilerplateMessage returns the message to print.
func (*Boilerplate) CloneMessageVT ¶ added in v0.23.6
func (m *Boilerplate) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Boilerplate) CloneVT ¶ added in v0.12.3
func (m *Boilerplate) CloneVT() *Boilerplate
func (*Boilerplate) EqualMessageVT ¶ added in v0.23.6
func (this *Boilerplate) EqualMessageVT(thatMsg any) bool
func (*Boilerplate) EqualVT ¶ added in v0.10.0
func (this *Boilerplate) EqualVT(that *Boilerplate) bool
func (*Boilerplate) GetDebugVals ¶
func (b *Boilerplate) GetDebugVals() directive.DebugValues
GetDebugVals returns the directive arguments as key/value pairs. This should be something like param1="test", param2="test". This is not necessarily unique, and is primarily intended for display.
func (*Boilerplate) GetMessageText ¶
func (x *Boilerplate) GetMessageText() string
func (*Boilerplate) GetName ¶
func (b *Boilerplate) GetName() string
GetName returns the directive's type name. This is not necessarily unique, and is primarily intended for display.
func (*Boilerplate) GetNetworkedCodec ¶
func (b *Boilerplate) GetNetworkedCodec() directive.NetworkedCodec
GetNetworkedCodec returns the encoder / decoder for this directive.
func (*Boilerplate) GetValueOptions ¶
func (b *Boilerplate) GetValueOptions() directive.ValueOptions
GetValueOptions returns options relating to value handling.
func (*Boilerplate) IsEquivalent ¶
func (b *Boilerplate) IsEquivalent(other directive.Directive) bool
IsEquivalent checks if the other directive is equivalent. If two directives are equivalent, and the new directive does not superceed the old, then the new directive will be merged (de-duplicated) into the old.
func (*Boilerplate) MarshalJSON ¶ added in v0.41.0
func (x *Boilerplate) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Boilerplate to JSON.
func (*Boilerplate) MarshalProtoJSON ¶ added in v0.41.0
func (x *Boilerplate) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Boilerplate message to JSON.
func (*Boilerplate) MarshalProtoText ¶ added in v0.42.0
func (x *Boilerplate) MarshalProtoText() string
func (*Boilerplate) MarshalToSizedBufferVT ¶ added in v0.10.0
func (m *Boilerplate) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Boilerplate) MarshalToVT ¶ added in v0.10.0
func (m *Boilerplate) MarshalToVT(dAtA []byte) (int, error)
func (*Boilerplate) MarshalVT ¶ added in v0.10.0
func (m *Boilerplate) MarshalVT() (dAtA []byte, err error)
func (*Boilerplate) ProtoMessage ¶
func (*Boilerplate) ProtoMessage()
func (*Boilerplate) Reset ¶
func (x *Boilerplate) Reset()
func (*Boilerplate) SizeVT ¶ added in v0.10.0
func (m *Boilerplate) SizeVT() (n int)
func (*Boilerplate) String ¶
func (x *Boilerplate) String() string
func (*Boilerplate) UnmarshalJSON ¶ added in v0.41.0
func (x *Boilerplate) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Boilerplate from JSON.
func (*Boilerplate) UnmarshalProtoJSON ¶ added in v0.41.0
func (x *Boilerplate) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Boilerplate message from JSON.
func (*Boilerplate) UnmarshalVT ¶ added in v0.10.0
func (m *Boilerplate) UnmarshalVT(dAtA []byte) error
func (*Boilerplate) Validate ¶
func (b *Boilerplate) Validate() error
Validate validates the directive. This is a cursory validation to see if the values "look correct."
type BoilerplateResult ¶
type BoilerplateResult struct { // PrintedLen is the final length of the printed message. PrintedLen uint32 `protobuf:"varint,1,opt,name=printed_len,json=printedLen,proto3" json:"printedLen,omitempty"` // contains filtered or unexported fields }
BoilerplateResult implements the boilerplate directive result.
func (*BoilerplateResult) CloneMessageVT ¶ added in v0.23.6
func (m *BoilerplateResult) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*BoilerplateResult) CloneVT ¶ added in v0.12.3
func (m *BoilerplateResult) CloneVT() *BoilerplateResult
func (*BoilerplateResult) EqualMessageVT ¶ added in v0.23.6
func (this *BoilerplateResult) EqualMessageVT(thatMsg any) bool
func (*BoilerplateResult) EqualVT ¶ added in v0.10.0
func (this *BoilerplateResult) EqualVT(that *BoilerplateResult) bool
func (*BoilerplateResult) GetPrintedLen ¶
func (x *BoilerplateResult) GetPrintedLen() uint32
func (*BoilerplateResult) MarshalJSON ¶ added in v0.41.0
func (x *BoilerplateResult) MarshalJSON() ([]byte, error)
MarshalJSON marshals the BoilerplateResult to JSON.
func (*BoilerplateResult) MarshalProtoJSON ¶ added in v0.41.0
func (x *BoilerplateResult) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the BoilerplateResult message to JSON.
func (*BoilerplateResult) MarshalProtoText ¶ added in v0.42.0
func (x *BoilerplateResult) MarshalProtoText() string
func (*BoilerplateResult) MarshalToSizedBufferVT ¶ added in v0.10.0
func (m *BoilerplateResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*BoilerplateResult) MarshalToVT ¶ added in v0.10.0
func (m *BoilerplateResult) MarshalToVT(dAtA []byte) (int, error)
func (*BoilerplateResult) MarshalVT ¶ added in v0.10.0
func (m *BoilerplateResult) MarshalVT() (dAtA []byte, err error)
func (*BoilerplateResult) ProtoMessage ¶
func (*BoilerplateResult) ProtoMessage()
func (*BoilerplateResult) Reset ¶
func (x *BoilerplateResult) Reset()
func (*BoilerplateResult) SizeVT ¶ added in v0.10.0
func (m *BoilerplateResult) SizeVT() (n int)
func (*BoilerplateResult) String ¶
func (x *BoilerplateResult) String() string
func (*BoilerplateResult) UnmarshalJSON ¶ added in v0.41.0
func (x *BoilerplateResult) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the BoilerplateResult from JSON.
func (*BoilerplateResult) UnmarshalProtoJSON ¶ added in v0.41.0
func (x *BoilerplateResult) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the BoilerplateResult message from JSON.
func (*BoilerplateResult) UnmarshalVT ¶ added in v0.10.0
func (m *BoilerplateResult) UnmarshalVT(dAtA []byte) error