protobuf

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 5 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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" storm:"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