pb

package
v0.0.0-...-235258f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFoosvcServer

func RegisterFoosvcServer(s *grpc.Server, srv FoosvcServer)

Types

type FooReply

type FooReply struct {
	Res                  string   `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FooReply) Descriptor

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

func (*FooReply) GetErr

func (m *FooReply) GetErr() string

func (*FooReply) GetRes

func (m *FooReply) GetRes() string

func (*FooReply) ProtoMessage

func (*FooReply) ProtoMessage()

func (*FooReply) Reset

func (m *FooReply) Reset()

func (*FooReply) String

func (m *FooReply) String() string

func (*FooReply) XXX_DiscardUnknown

func (m *FooReply) XXX_DiscardUnknown()

func (*FooReply) XXX_Marshal

func (m *FooReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FooReply) XXX_Merge

func (m *FooReply) XXX_Merge(src proto.Message)

func (*FooReply) XXX_Size

func (m *FooReply) XXX_Size() int

func (*FooReply) XXX_Unmarshal

func (m *FooReply) XXX_Unmarshal(b []byte) error

type FooRequest

type FooRequest struct {
	S                    string   `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FooRequest) Descriptor

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

func (*FooRequest) GetS

func (m *FooRequest) GetS() string

func (*FooRequest) ProtoMessage

func (*FooRequest) ProtoMessage()

func (*FooRequest) Reset

func (m *FooRequest) Reset()

func (*FooRequest) String

func (m *FooRequest) String() string

func (*FooRequest) XXX_DiscardUnknown

func (m *FooRequest) XXX_DiscardUnknown()

func (*FooRequest) XXX_Marshal

func (m *FooRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FooRequest) XXX_Merge

func (m *FooRequest) XXX_Merge(src proto.Message)

func (*FooRequest) XXX_Size

func (m *FooRequest) XXX_Size() int

func (*FooRequest) XXX_Unmarshal

func (m *FooRequest) XXX_Unmarshal(b []byte) error

type FoosvcClient

type FoosvcClient interface {
	Foo(ctx context.Context, in *FooRequest, opts ...grpc.CallOption) (*FooReply, error)
}

FoosvcClient is the client API for Foosvc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFoosvcClient

func NewFoosvcClient(cc *grpc.ClientConn) FoosvcClient

type FoosvcServer

type FoosvcServer interface {
	Foo(context.Context, *FooRequest) (*FooReply, error)
}

FoosvcServer is the server API for Foosvc service.

Jump to

Keyboard shortcuts

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