Documentation ¶
Overview ¶
Package go_micro_srv_stream is a generated protocol buffer package.
It is generated from these files:
github.com/microhq/stream-srv/proto/stream/stream.proto
It has these top-level messages:
CreateRequest CreateResponse Message PubResponse SubscribeRequest
Index ¶
- func RegisterStreamHandler(s server.Server, hdlr StreamHandler, opts ...server.HandlerOption) error
- func RegisterStreamServer(s *grpc.Server, srv StreamServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetId() string
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) String() string
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) String() string
- func (m *CreateResponse) XXX_DiscardUnknown()
- func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponse) XXX_Merge(src proto.Message)
- func (m *CreateResponse) XXX_Size() int
- func (m *CreateResponse) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetData() []byte
- func (m *Message) GetId() 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 (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type PubResponse
- func (*PubResponse) Descriptor() ([]byte, []int)
- func (*PubResponse) ProtoMessage()
- func (m *PubResponse) Reset()
- func (m *PubResponse) String() string
- func (m *PubResponse) XXX_DiscardUnknown()
- func (m *PubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubResponse) XXX_Merge(src proto.Message)
- func (m *PubResponse) XXX_Size() int
- func (m *PubResponse) XXX_Unmarshal(b []byte) error
- type StreamClient
- type StreamHandler
- type StreamServer
- type StreamService
- type Stream_PublishClient
- type Stream_PublishServer
- type Stream_PublishService
- type Stream_PublishStream
- type Stream_SubscribeClient
- type Stream_SubscribeServer
- type Stream_SubscribeService
- type Stream_SubscribeStream
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetId() string
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) XXX_DiscardUnknown()
- func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeRequest) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest) XXX_Size() int
- func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStreamHandler ¶
func RegisterStreamHandler(s server.Server, hdlr StreamHandler, opts ...server.HandlerOption) error
func RegisterStreamServer ¶
func RegisterStreamServer(s *grpc.Server, srv StreamServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetId ¶
func (m *CreateRequest) GetId() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateResponse ¶
type CreateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
func (*CreateResponse) XXX_DiscardUnknown ¶
func (m *CreateResponse) XXX_DiscardUnknown()
func (*CreateResponse) XXX_Marshal ¶
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponse) XXX_Merge ¶
func (m *CreateResponse) XXX_Merge(src proto.Message)
func (*CreateResponse) XXX_Size ¶
func (m *CreateResponse) XXX_Size() int
func (*CreateResponse) XXX_Unmarshal ¶
func (m *CreateResponse) XXX_Unmarshal(b []byte) error
type Message ¶
type Message struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type PubResponse ¶
type PubResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubResponse) Descriptor ¶
func (*PubResponse) Descriptor() ([]byte, []int)
func (*PubResponse) ProtoMessage ¶
func (*PubResponse) ProtoMessage()
func (*PubResponse) Reset ¶
func (m *PubResponse) Reset()
func (*PubResponse) String ¶
func (m *PubResponse) String() string
func (*PubResponse) XXX_DiscardUnknown ¶
func (m *PubResponse) XXX_DiscardUnknown()
func (*PubResponse) XXX_Marshal ¶
func (m *PubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PubResponse) XXX_Merge ¶
func (m *PubResponse) XXX_Merge(src proto.Message)
func (*PubResponse) XXX_Size ¶
func (m *PubResponse) XXX_Size() int
func (*PubResponse) XXX_Unmarshal ¶
func (m *PubResponse) XXX_Unmarshal(b []byte) error
type StreamClient ¶
type StreamClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Publish(ctx context.Context, opts ...grpc.CallOption) (Stream_PublishClient, error) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (Stream_SubscribeClient, error) }
StreamClient is the client API for Stream service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStreamClient ¶
func NewStreamClient(cc *grpc.ClientConn) StreamClient
type StreamHandler ¶
type StreamHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error Publish(context.Context, Stream_PublishStream) error Subscribe(context.Context, *SubscribeRequest, Stream_SubscribeStream) error }
type StreamServer ¶
type StreamServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Publish(Stream_PublishServer) error Subscribe(*SubscribeRequest, Stream_SubscribeServer) error }
StreamServer is the server API for Stream service.
type StreamService ¶
type StreamService interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) Publish(ctx context.Context, opts ...client.CallOption) (Stream_PublishService, error) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...client.CallOption) (Stream_SubscribeService, error) }
func NewStreamService ¶
func NewStreamService(name string, c client.Client) StreamService
type Stream_PublishClient ¶
type Stream_PublishClient interface { Send(*Message) error CloseAndRecv() (*PubResponse, error) grpc.ClientStream }
type Stream_PublishServer ¶
type Stream_PublishServer interface { SendAndClose(*PubResponse) error Recv() (*Message, error) grpc.ServerStream }
type Stream_PublishService ¶
type Stream_PublishStream ¶
type Stream_SubscribeClient ¶
type Stream_SubscribeClient interface { Recv() (*Message, error) grpc.ClientStream }
type Stream_SubscribeServer ¶
type Stream_SubscribeServer interface { Send(*Message) error grpc.ServerStream }
type Stream_SubscribeService ¶
type Stream_SubscribeStream ¶
type SubscribeRequest ¶
type SubscribeRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetId ¶
func (m *SubscribeRequest) GetId() string
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
func (*SubscribeRequest) XXX_DiscardUnknown ¶
func (m *SubscribeRequest) XXX_DiscardUnknown()
func (*SubscribeRequest) XXX_Marshal ¶
func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeRequest) XXX_Merge ¶
func (m *SubscribeRequest) XXX_Merge(src proto.Message)
func (*SubscribeRequest) XXX_Size ¶
func (m *SubscribeRequest) XXX_Size() int
func (*SubscribeRequest) XXX_Unmarshal ¶
func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.