pb

package
v0.0.0-...-085eba2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServerAServer

func RegisterServerAServer(s *grpc.Server, srv ServerAServer)

func RegisterServerBServer

func RegisterServerBServer(s *grpc.Server, srv ServerBServer)

Types

type HelloReq

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

func (*HelloReq) Descriptor

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

func (*HelloReq) GetName

func (m *HelloReq) GetName() string

func (*HelloReq) ProtoMessage

func (*HelloReq) ProtoMessage()

func (*HelloReq) Reset

func (m *HelloReq) Reset()

func (*HelloReq) String

func (m *HelloReq) String() string

func (*HelloReq) XXX_DiscardUnknown

func (m *HelloReq) XXX_DiscardUnknown()

func (*HelloReq) XXX_Marshal

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

func (*HelloReq) XXX_Merge

func (dst *HelloReq) XXX_Merge(src proto.Message)

func (*HelloReq) XXX_Size

func (m *HelloReq) XXX_Size() int

func (*HelloReq) XXX_Unmarshal

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

type HelloResp

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

func (*HelloResp) Descriptor

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

func (*HelloResp) GetEcho

func (m *HelloResp) GetEcho() string

func (*HelloResp) ProtoMessage

func (*HelloResp) ProtoMessage()

func (*HelloResp) Reset

func (m *HelloResp) Reset()

func (*HelloResp) String

func (m *HelloResp) String() string

func (*HelloResp) XXX_DiscardUnknown

func (m *HelloResp) XXX_DiscardUnknown()

func (*HelloResp) XXX_Marshal

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

func (*HelloResp) XXX_Merge

func (dst *HelloResp) XXX_Merge(src proto.Message)

func (*HelloResp) XXX_Size

func (m *HelloResp) XXX_Size() int

func (*HelloResp) XXX_Unmarshal

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

type HiReq

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

func (*HiReq) Descriptor

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

func (*HiReq) GetName

func (m *HiReq) GetName() string

func (*HiReq) ProtoMessage

func (*HiReq) ProtoMessage()

func (*HiReq) Reset

func (m *HiReq) Reset()

func (*HiReq) String

func (m *HiReq) String() string

func (*HiReq) XXX_DiscardUnknown

func (m *HiReq) XXX_DiscardUnknown()

func (*HiReq) XXX_Marshal

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

func (*HiReq) XXX_Merge

func (dst *HiReq) XXX_Merge(src proto.Message)

func (*HiReq) XXX_Size

func (m *HiReq) XXX_Size() int

func (*HiReq) XXX_Unmarshal

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

type HiResp

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

func (*HiResp) Descriptor

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

func (*HiResp) GetEcho

func (m *HiResp) GetEcho() string

func (*HiResp) ProtoMessage

func (*HiResp) ProtoMessage()

func (*HiResp) Reset

func (m *HiResp) Reset()

func (*HiResp) String

func (m *HiResp) String() string

func (*HiResp) XXX_DiscardUnknown

func (m *HiResp) XXX_DiscardUnknown()

func (*HiResp) XXX_Marshal

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

func (*HiResp) XXX_Merge

func (dst *HiResp) XXX_Merge(src proto.Message)

func (*HiResp) XXX_Size

func (m *HiResp) XXX_Size() int

func (*HiResp) XXX_Unmarshal

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

type ServerAClient

type ServerAClient interface {
	Hi(ctx context.Context, in *HiReq, opts ...grpc.CallOption) (*HiResp, error)
}

ServerAClient is the client API for ServerA service.

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

func NewServerAClient

func NewServerAClient(cc *grpc.ClientConn) ServerAClient

type ServerAServer

type ServerAServer interface {
	Hi(context.Context, *HiReq) (*HiResp, error)
}

ServerAServer is the server API for ServerA service.

type ServerBClient

type ServerBClient interface {
	Hello(ctx context.Context, in *HelloReq, opts ...grpc.CallOption) (*HelloResp, error)
}

ServerBClient is the client API for ServerB service.

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

func NewServerBClient

func NewServerBClient(cc *grpc.ClientConn) ServerBClient

type ServerBServer

type ServerBServer interface {
	Hello(context.Context, *HelloReq) (*HelloResp, error)
}

ServerBServer is the server API for ServerB service.

Jump to

Keyboard shortcuts

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