boilerplate_v1

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)

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:"message_text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Boilerplate implements the boilerplate directive.

func (*Boilerplate) BoilerplateMessage

func (b *Boilerplate) BoilerplateMessage() string

BoilerplateMessage returns the message to print.

func (*Boilerplate) Descriptor

func (*Boilerplate) Descriptor() ([]byte, []int)

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 (m *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) 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 (m *Boilerplate) Reset()

func (*Boilerplate) SizeVT added in v0.10.0

func (m *Boilerplate) SizeVT() (n int)

func (*Boilerplate) String

func (m *Boilerplate) String() string

func (*Boilerplate) Superceeds

func (b *Boilerplate) Superceeds(other directive.Directive) bool

Superceeds checks if the directive overrides another. The other directive will be canceled if superceded.

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."

func (*Boilerplate) XXX_DiscardUnknown

func (m *Boilerplate) XXX_DiscardUnknown()

func (*Boilerplate) XXX_Marshal

func (m *Boilerplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Boilerplate) XXX_Merge

func (m *Boilerplate) XXX_Merge(src proto.Message)

func (*Boilerplate) XXX_Size

func (m *Boilerplate) XXX_Size() int

func (*Boilerplate) XXX_Unmarshal

func (m *Boilerplate) XXX_Unmarshal(b []byte) error

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:"printed_len,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

BoilerplateResult implements the boilerplate directive result.

func (*BoilerplateResult) Descriptor

func (*BoilerplateResult) Descriptor() ([]byte, []int)

func (*BoilerplateResult) EqualVT added in v0.10.0

func (this *BoilerplateResult) EqualVT(that *BoilerplateResult) bool

func (*BoilerplateResult) GetPrintedLen

func (m *BoilerplateResult) GetPrintedLen() uint32

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 (m *BoilerplateResult) Reset()

func (*BoilerplateResult) SizeVT added in v0.10.0

func (m *BoilerplateResult) SizeVT() (n int)

func (*BoilerplateResult) String

func (m *BoilerplateResult) String() string

func (*BoilerplateResult) UnmarshalVT added in v0.10.0

func (m *BoilerplateResult) UnmarshalVT(dAtA []byte) error

func (*BoilerplateResult) XXX_DiscardUnknown

func (m *BoilerplateResult) XXX_DiscardUnknown()

func (*BoilerplateResult) XXX_Marshal

func (m *BoilerplateResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoilerplateResult) XXX_Merge

func (m *BoilerplateResult) XXX_Merge(src proto.Message)

func (*BoilerplateResult) XXX_Size

func (m *BoilerplateResult) XXX_Size() int

func (*BoilerplateResult) XXX_Unmarshal

func (m *BoilerplateResult) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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