Documentation ¶
Index ¶
- func RegisterPubsubServiceServer(s *grpc.Server, srv PubsubServiceServer)
- type PubsubServiceClient
- type PubsubServiceServer
- type PubsubService_SubscribeClient
- type PubsubService_SubscribeServer
- 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 RegisterPubsubServiceServer ¶
func RegisterPubsubServiceServer(s *grpc.Server, srv PubsubServiceServer)
Types ¶
type PubsubServiceClient ¶
type PubsubServiceClient interface { Publish(ctx context.Context, in *String, opts ...grpc.CallOption) (*String, error) Subscribe(ctx context.Context, in *String, opts ...grpc.CallOption) (PubsubService_SubscribeClient, error) }
PubsubServiceClient is the client API for PubsubService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPubsubServiceClient ¶
func NewPubsubServiceClient(cc *grpc.ClientConn) PubsubServiceClient
type PubsubServiceServer ¶
type PubsubServiceServer interface { Publish(context.Context, *String) (*String, error) Subscribe(*String, PubsubService_SubscribeServer) error }
PubsubServiceServer is the server API for PubsubService service.
type PubsubService_SubscribeClient ¶
type PubsubService_SubscribeClient interface { Recv() (*String, error) grpc.ClientStream }
type PubsubService_SubscribeServer ¶
type PubsubService_SubscribeServer interface { Send(*String) error grpc.ServerStream }
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.