Documentation
¶
Index ¶
- func PBGOHelloServiceGrpcHandler(ctx context1.Context, svc PBGOHelloServiceGrpcInterface, ...) net_http.Handler
- func PBGOHelloServiceHandler(svc PBGOHelloServiceInterface) net_http.Handler
- func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
- func RegisterPBGOHelloService(srv *net_rpc.Server, x PBGOHelloServiceInterface) error
- type HelloServiceClient
- type HelloServiceServer
- type HelloService_ChannelClient
- type HelloService_ChannelServer
- type HelloService_ClientStreamClient
- type HelloService_ClientStreamServer
- type HelloService_ServerStreamClient
- type HelloService_ServerStreamServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetArray() []int32
- func (m *Message) GetDict() map[string]string
- func (m *Message) GetSubfiled() *String
- func (m *Message) GetValue() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type PBGOHelloServiceClient
- func (p *PBGOHelloServiceClient) AsyncEcho(in *Message, out *Message, done chan *net_rpc.Call) *net_rpc.Call
- func (p *PBGOHelloServiceClient) AsyncHello(in *String, out *String, done chan *net_rpc.Call) *net_rpc.Call
- func (p *PBGOHelloServiceClient) AsyncStatic(in *String, out *StaticFile, done chan *net_rpc.Call) *net_rpc.Call
- func (p *PBGOHelloServiceClient) Echo(in *Message) (*Message, error)
- func (p *PBGOHelloServiceClient) Hello(in *String) (*String, error)
- func (p *PBGOHelloServiceClient) Static(in *String) (*StaticFile, error)
- type PBGOHelloServiceGrpcInterface
- type PBGOHelloServiceInterface
- type PBGOHelloServiceValidator
- type StaticFile
- func (*StaticFile) Descriptor() ([]byte, []int)
- func (m *StaticFile) GetContentBody() []byte
- func (m *StaticFile) GetContentType() string
- func (*StaticFile) ProtoMessage()
- func (m *StaticFile) Reset()
- func (m *StaticFile) String() string
- func (m *StaticFile) XXX_DiscardUnknown()
- func (m *StaticFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StaticFile) XXX_Merge(src proto.Message)
- func (m *StaticFile) XXX_Size() int
- func (m *StaticFile) XXX_Unmarshal(b []byte) error
- type String
- func (*String) Descriptor() ([]byte, []int)
- func (m *String) GetValue() string
- func (*String) ProtoMessage()
- func (m *String) Reset()
- func (m *String) String() string
- func (m *String) XXX_DiscardUnknown()
- func (m *String) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *String) XXX_Merge(src proto.Message)
- func (m *String) XXX_Size() int
- func (m *String) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PBGOHelloServiceHandler ¶
func PBGOHelloServiceHandler(svc PBGOHelloServiceInterface) net_http.Handler
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
func RegisterPBGOHelloService ¶
func RegisterPBGOHelloService(srv *net_rpc.Server, x PBGOHelloServiceInterface) error
Types ¶
type HelloServiceClient ¶
type HelloServiceClient interface { Hello(ctx context.Context, in *String, opts ...grpc.CallOption) (*String, error) Echo(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) Static(ctx context.Context, in *String, opts ...grpc.CallOption) (*StaticFile, error) ServerStream(ctx context.Context, in *String, opts ...grpc.CallOption) (HelloService_ServerStreamClient, error) ClientStream(ctx context.Context, opts ...grpc.CallOption) (HelloService_ClientStreamClient, error) Channel(ctx context.Context, opts ...grpc.CallOption) (HelloService_ChannelClient, error) }
HelloServiceClient is the client API for HelloService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloServiceClient ¶
func NewHelloServiceClient(cc *grpc.ClientConn) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface { Hello(context.Context, *String) (*String, error) Echo(context.Context, *Message) (*Message, error) Static(context.Context, *String) (*StaticFile, error) ServerStream(*String, HelloService_ServerStreamServer) error ClientStream(HelloService_ClientStreamServer) error Channel(HelloService_ChannelServer) error }
HelloServiceServer is the server API for HelloService service.
type HelloService_ServerStreamClient ¶
type HelloService_ServerStreamClient interface { Recv() (*String, error) grpc.ClientStream }
type HelloService_ServerStreamServer ¶
type HelloService_ServerStreamServer interface { Send(*String) error grpc.ServerStream }
type Message ¶
type Message struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Array []int32 `protobuf:"varint,2,rep,packed,name=array,proto3" json:"array,omitempty"` Dict map[string]string `` /* 149-byte string literal not displayed */ Subfiled *String `protobuf:"bytes,4,opt,name=subfiled,proto3" json:"subfiled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetSubfiled ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type PBGOHelloServiceClient ¶
func DialPBGOHelloService ¶
func DialPBGOHelloService(network, address string) (*PBGOHelloServiceClient, error)
func (*PBGOHelloServiceClient) AsyncHello ¶
func (*PBGOHelloServiceClient) AsyncStatic ¶
func (p *PBGOHelloServiceClient) AsyncStatic(in *String, out *StaticFile, done chan *net_rpc.Call) *net_rpc.Call
func (*PBGOHelloServiceClient) Echo ¶
func (p *PBGOHelloServiceClient) Echo(in *Message) (*Message, error)
func (*PBGOHelloServiceClient) Hello ¶
func (p *PBGOHelloServiceClient) Hello(in *String) (*String, error)
func (*PBGOHelloServiceClient) Static ¶
func (p *PBGOHelloServiceClient) Static(in *String) (*StaticFile, error)
type PBGOHelloServiceValidator ¶
type PBGOHelloServiceValidator struct {
PBGOHelloServiceInterface
}
func (*PBGOHelloServiceValidator) Echo ¶
func (p *PBGOHelloServiceValidator) Echo(in *Message, out *Message) error
func (*PBGOHelloServiceValidator) Hello ¶
func (p *PBGOHelloServiceValidator) Hello(in *String, out *String) error
func (*PBGOHelloServiceValidator) Static ¶
func (p *PBGOHelloServiceValidator) Static(in *String, out *StaticFile) error
type StaticFile ¶
type StaticFile struct { ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` ContentBody []byte `protobuf:"bytes,2,opt,name=content_body,json=contentBody,proto3" json:"content_body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StaticFile) Descriptor ¶
func (*StaticFile) Descriptor() ([]byte, []int)
func (*StaticFile) GetContentBody ¶
func (m *StaticFile) GetContentBody() []byte
func (*StaticFile) GetContentType ¶
func (m *StaticFile) GetContentType() string
func (*StaticFile) ProtoMessage ¶
func (*StaticFile) ProtoMessage()
func (*StaticFile) Reset ¶
func (m *StaticFile) Reset()
func (*StaticFile) String ¶
func (m *StaticFile) String() string
func (*StaticFile) XXX_DiscardUnknown ¶
func (m *StaticFile) XXX_DiscardUnknown()
func (*StaticFile) XXX_Marshal ¶
func (m *StaticFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StaticFile) XXX_Merge ¶
func (dst *StaticFile) XXX_Merge(src proto.Message)
func (*StaticFile) XXX_Size ¶
func (m *StaticFile) XXX_Size() int
func (*StaticFile) XXX_Unmarshal ¶
func (m *StaticFile) XXX_Unmarshal(b []byte) error
type String ¶
type String struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*String) Descriptor ¶
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) XXX_DiscardUnknown ¶
func (m *String) XXX_DiscardUnknown()
func (*String) XXX_Marshal ¶
func (*String) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.