protos

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package protos is a generated protocol buffer package.

It is generated from these files:

cluster.proto

It has these top-level messages:

TestRequest
TestResponse

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type TestRequest

type TestRequest struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}

TestRequest message to be sent using rpc

func (*TestRequest) Descriptor

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

func (*TestRequest) GetMsg

func (m *TestRequest) GetMsg() string

func (*TestRequest) Marshal

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

func (*TestRequest) MarshalTo

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

func (*TestRequest) ProtoMessage

func (*TestRequest) ProtoMessage()

func (*TestRequest) Reset

func (m *TestRequest) Reset()

func (*TestRequest) Size

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

func (*TestRequest) String

func (m *TestRequest) String() string

func (*TestRequest) Unmarshal

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

type TestResponse

type TestResponse struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}

TestResponse is the rpc response

func (*TestResponse) Descriptor

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

func (*TestResponse) GetCode

func (m *TestResponse) GetCode() int32

func (*TestResponse) GetMsg

func (m *TestResponse) GetMsg() string

func (*TestResponse) Marshal

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

func (*TestResponse) MarshalTo

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

func (*TestResponse) ProtoMessage

func (*TestResponse) ProtoMessage()

func (*TestResponse) Reset

func (m *TestResponse) Reset()

func (*TestResponse) Size

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

func (*TestResponse) String

func (m *TestResponse) String() string

func (*TestResponse) Unmarshal

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

Jump to

Keyboard shortcuts

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