loadtime

package
v0.2.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPayload        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPayload          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPayload = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Payload

type Payload struct {
	Connections uint64    `protobuf:"varint,1,opt,name=connections,proto3" json:"connections,omitempty"`
	Rate        uint64    `protobuf:"varint,2,opt,name=rate,proto3" json:"rate,omitempty"`
	Size_       uint64    `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Time        time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"`
	Id          []byte    `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	Padding     []byte    `protobuf:"bytes,6,opt,name=padding,proto3" json:"padding,omitempty"`
}

Payload is the structure of the loadtime transaction. Proto has a compact encoded representation, making it ideal for the loadtime usecase which aims to keep the generated transactions small.

func (*Payload) Descriptor

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

func (*Payload) GetConnections

func (m *Payload) GetConnections() uint64

func (*Payload) GetId

func (m *Payload) GetId() []byte

func (*Payload) GetPadding

func (m *Payload) GetPadding() []byte

func (*Payload) GetRate

func (m *Payload) GetRate() uint64

func (*Payload) GetSize_

func (m *Payload) GetSize_() uint64

func (*Payload) GetTime

func (m *Payload) GetTime() time.Time

func (*Payload) Marshal

func (m *Payload) Marshal() (dAtA []byte, err error)

func (*Payload) MarshalTo

func (m *Payload) MarshalTo(dAtA []byte) (int, error)

func (*Payload) MarshalToSizedBuffer

func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) Size

func (m *Payload) Size() (n int)

func (*Payload) String

func (m *Payload) String() string

func (*Payload) Unmarshal

func (m *Payload) Unmarshal(dAtA []byte) error

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

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

func (*Payload) XXX_Merge

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

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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