example

package
v0.0.0-...-be958a6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MGET

func MGET(wrappers ...ProtoWrapper) error

Types

type Meta

type Meta struct {
	// contains filtered or unexported fields
}

func (*Meta) GetKey

func (m *Meta) GetKey() (s string)

type Person

type Person struct {
	*Meta
	proto.Message
}

func NewPerson

func NewPerson(uid string) *Person

func (*Person) GetObj

func (p *Person) GetObj() *rawproto.Person

func (*Person) GetProto

func (p *Person) GetProto() proto.Message

func (*Person) Marshal

func (p *Person) Marshal() ([]byte, error)

func (*Person) Unmarshal

func (p *Person) Unmarshal(b []byte) error

type ProtoWrapper

type ProtoWrapper interface {
	Marshal() ([]byte, error)
	Unmarshal(b []byte) error
	GetKey() (s string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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