__

package
v0.48.11 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_codec_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Item

type Item struct {
	ID     int64  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Weight int64  `protobuf:"varint,3,opt,name=Weight,proto3" json:"Weight,omitempty"`
	// contains filtered or unexported fields
}

protoc --go_out=. *.proto

func NewItem

func NewItem() *Item

func NewItems

func NewItems(n int64) []*Item

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetID

func (x *Item) GetID() int64

func (*Item) GetName

func (x *Item) GetName() string

func (*Item) GetWeight

func (x *Item) GetWeight() int64

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

func (x *Item) ProtoReflect() protoreflect.Message

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

Jump to

Keyboard shortcuts

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