proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type EncodingProto

type EncodingProto struct {
}

EncodingProto is the proto encoding type

func NewEncodingProto

func NewEncodingProto() *EncodingProto

NewEncodingProto creates a new EncodingProto instance

func (*EncodingProto) Marshal

func (e *EncodingProto) Marshal(v interface{}) ([]byte, error)

Marshal converts the given value to a proto byte slice

func (*EncodingProto) Unmarshal

func (e *EncodingProto) Unmarshal(b []byte, v interface{}) error

Unmarshal converts the given proto byte slice to the given value

type KeyValueStore

type KeyValueStore struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyValueStore) Descriptor deprecated

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

Deprecated: Use KeyValueStore.ProtoReflect.Descriptor instead.

func (*KeyValueStore) GetKey

func (x *KeyValueStore) GetKey() string

func (*KeyValueStore) GetValue

func (x *KeyValueStore) GetValue() string

func (*KeyValueStore) ProtoMessage

func (*KeyValueStore) ProtoMessage()

func (*KeyValueStore) ProtoReflect

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

func (*KeyValueStore) Reset

func (x *KeyValueStore) Reset()

func (*KeyValueStore) String

func (x *KeyValueStore) String() string

Jump to

Keyboard shortcuts

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