protobuf

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package protobuf contains a codec to encode and decode entities in Protocol Buffer

Package protobuf is a generated protocol buffer package.

It is generated from these files:

simple_user.proto

It has these top-level messages:

SimpleUser

Index

Constants

This section is empty.

Variables

View Source
var (
	Codec = new(protobufCodec)
)

More details on Protocol Buffers https://github.com/golang/protobuf

Functions

This section is empty.

Types

type SimpleUser

type SimpleUser struct {
	ID   uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty" rainstorm:"id"`
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Age  int32  `protobuf:"varint,3,opt,name=age" json:"age,omitempty"`
}

func (*SimpleUser) Descriptor

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

func (*SimpleUser) ProtoMessage

func (*SimpleUser) ProtoMessage()

func (*SimpleUser) Reset

func (m *SimpleUser) Reset()

func (*SimpleUser) String

func (m *SimpleUser) String() string

Jump to

Keyboard shortcuts

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