hello_pb

package
v0.0.0-...-d2bd8cc Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PBGOHelloServiceGrpcHandler

func PBGOHelloServiceGrpcHandler(
	ctx context1.Context, svc PBGOHelloServiceGrpcInterface,
	fnAnnotateContext func(ctx context1.Context, req *net_http.Request, methodName string) (context1.Context, error),
) net_http.Handler

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_ChannelClient

type HelloService_ChannelClient interface {
	Send(*String) error
	Recv() (*String, error)
	grpc.ClientStream
}

type HelloService_ChannelServer

type HelloService_ChannelServer interface {
	Send(*String) error
	Recv() (*String, error)
	grpc.ServerStream
}

type HelloService_ClientStreamClient

type HelloService_ClientStreamClient interface {
	Send(*String) error
	CloseAndRecv() (*String, error)
	grpc.ClientStream
}

type HelloService_ClientStreamServer

type HelloService_ClientStreamServer interface {
	SendAndClose(*String) error
	Recv() (*String, error)
	grpc.ServerStream
}

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) Descriptor() ([]byte, []int)

func (*Message) GetArray

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

func (*Message) GetDict

func (m *Message) GetDict() map[string]string

func (*Message) GetSubfiled

func (m *Message) GetSubfiled() *String

func (*Message) GetValue

func (m *Message) GetValue() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type PBGOHelloServiceClient

type PBGOHelloServiceClient struct {
	*net_rpc.Client
}

func DialPBGOHelloService

func DialPBGOHelloService(network, address string) (*PBGOHelloServiceClient, error)

func (*PBGOHelloServiceClient) AsyncEcho

func (p *PBGOHelloServiceClient) AsyncEcho(in *Message, out *Message, done chan *net_rpc.Call) *net_rpc.Call

func (*PBGOHelloServiceClient) AsyncHello

func (p *PBGOHelloServiceClient) AsyncHello(in *String, out *String, done chan *net_rpc.Call) *net_rpc.Call

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 PBGOHelloServiceGrpcInterface

type PBGOHelloServiceGrpcInterface interface {
	Hello(ctx context1.Context, in *String) (out *String, err error)
	Echo(ctx context1.Context, in *Message) (out *Message, err error)
	Static(ctx context1.Context, in *String) (out *StaticFile, err error)
}

type PBGOHelloServiceInterface

type PBGOHelloServiceInterface interface {
	Hello(in *String, out *String) error
	Echo(in *Message, out *Message) error
	Static(in *String, out *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) Descriptor() ([]byte, []int)

func (*String) GetValue

func (m *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) Reset

func (m *String) Reset()

func (*String) String

func (m *String) String() string

func (*String) XXX_DiscardUnknown

func (m *String) XXX_DiscardUnknown()

func (*String) XXX_Marshal

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

func (*String) XXX_Merge

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

func (*String) XXX_Size

func (m *String) XXX_Size() int

func (*String) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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