pb

package
v0.0.0-...-42befb5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 3 Imported by: 0

README

protoc --go_out=. ./*.proto

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

node.proto

It has these top-level messages:

Node

Index

Constants

This section is empty.

Variables

View Source
var NodeType_name = map[int32]string{
	0: "branch",
	1: "extension",
	2: "leaf",
}
View Source
var NodeType_value = map[string]int32{
	"branch":    0,
	"extension": 1,
	"leaf":      2,
}

Functions

This section is empty.

Types

type Node

type Node struct {
	NodeType NodeType `protobuf:"varint,1,opt,name=nodeType,enum=pb.NodeType" json:"nodeType,omitempty"`
	Entries  [][]byte `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	Path     string   `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
	Value    []byte   `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Node) Descriptor

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

func (*Node) GetEntries

func (m *Node) GetEntries() [][]byte

func (*Node) GetNodeType

func (m *Node) GetNodeType() NodeType

func (*Node) GetPath

func (m *Node) GetPath() string

func (*Node) GetValue

func (m *Node) GetValue() []byte

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type NodeType

type NodeType int32
const (
	NodeType_branch    NodeType = 0
	NodeType_extension NodeType = 1
	NodeType_leaf      NodeType = 2
)

func (NodeType) EnumDescriptor

func (NodeType) EnumDescriptor() ([]byte, []int)

func (NodeType) String

func (x NodeType) String() string

Jump to

Keyboard shortcuts

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