test

package
v0.0.0-...-4ee76f2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

Empty
SimpleTypes
ComplexTypes

Package test is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

Empty
SimpleTypes
ComplexTypes

Index

Constants

View Source
const (
	Functions_CopySimple  int32 = 0
	Functions_GenErr      int32 = 1
	Functions_CopyComplex int32 = 2
)

Functions enum

Variables

View Source
var (
	ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTest   = fmt.Errorf("proto: integer overflow")
)

Functions

func RunServer

func RunServer(srv rpc.Server, handler TestServer)

Run server API with this call

Types

type ComplexTypes

type ComplexTypes struct {
	Array []int32          `protobuf:"varint,2,rep,packed,name=array" json:"array,omitempty"`
	Dict  map[int32]string `` /* 143-byte string literal not displayed */
}

func (*ComplexTypes) Descriptor

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

func (*ComplexTypes) Equal

func (this *ComplexTypes) Equal(that interface{}) bool

func (*ComplexTypes) GetArray

func (m *ComplexTypes) GetArray() []int32

func (*ComplexTypes) GetDict

func (m *ComplexTypes) GetDict() map[int32]string

func (*ComplexTypes) Marshal

func (m *ComplexTypes) Marshal() (dAtA []byte, err error)

func (*ComplexTypes) MarshalTo

func (m *ComplexTypes) MarshalTo(dAtA []byte) (int, error)

func (*ComplexTypes) ProtoMessage

func (*ComplexTypes) ProtoMessage()

func (*ComplexTypes) Reset

func (m *ComplexTypes) Reset()

func (*ComplexTypes) Size

func (m *ComplexTypes) Size() (n int)

func (*ComplexTypes) String

func (m *ComplexTypes) String() string

func (*ComplexTypes) Unmarshal

func (m *ComplexTypes) Unmarshal(dAtA []byte) error

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) Equal

func (this *Empty) Equal(that interface{}) bool

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

type SimpleTypes

type SimpleTypes struct {
	Number int32  `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	Str    string `protobuf:"bytes,2,opt,name=str,proto3" json:"str,omitempty"`
	Logic  bool   `protobuf:"varint,3,opt,name=logic,proto3" json:"logic,omitempty"`
}

func (*SimpleTypes) Descriptor

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

func (*SimpleTypes) Equal

func (this *SimpleTypes) Equal(that interface{}) bool

func (*SimpleTypes) GetLogic

func (m *SimpleTypes) GetLogic() bool

func (*SimpleTypes) GetNumber

func (m *SimpleTypes) GetNumber() int32

func (*SimpleTypes) GetStr

func (m *SimpleTypes) GetStr() string

func (*SimpleTypes) Marshal

func (m *SimpleTypes) Marshal() (dAtA []byte, err error)

func (*SimpleTypes) MarshalTo

func (m *SimpleTypes) MarshalTo(dAtA []byte) (int, error)

func (*SimpleTypes) ProtoMessage

func (*SimpleTypes) ProtoMessage()

func (*SimpleTypes) Reset

func (m *SimpleTypes) Reset()

func (*SimpleTypes) Size

func (m *SimpleTypes) Size() (n int)

func (*SimpleTypes) String

func (m *SimpleTypes) String() string

func (*SimpleTypes) Unmarshal

func (m *SimpleTypes) Unmarshal(dAtA []byte) error

type TestClient

type TestClient interface {
	Close()
	CopySimple(arg *SimpleTypes) (*SimpleTypes, error)
	GenErr(arg *Empty) (*Empty, error)
	CopyComplex(arg *ComplexTypes) (*ComplexTypes, error)
}

Client API

func NewTestClient

func NewTestClient(cc rpc.Client) TestClient

type TestServer

type TestServer interface {
	CopySimple(arg *SimpleTypes) (*SimpleTypes, error)
	GenErr(arg *Empty) (*Empty, error)
	CopyComplex(arg *ComplexTypes) (*ComplexTypes, error)
}

Server API

Jump to

Keyboard shortcuts

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