Documentation
¶
Index ¶
- func RegisterGoetheServer(s *grpc.Server, srv GoetheServer)
- type Cursor
- func (*Cursor) Descriptor() ([]byte, []int)
- func (m *Cursor) GetConsumer() string
- func (m *Cursor) GetCurrentEvent() *Event
- func (m *Cursor) GetTopic() *Topic
- func (*Cursor) ProtoMessage()
- func (m *Cursor) Reset()
- func (m *Cursor) String() string
- func (m *Cursor) XXX_DiscardUnknown()
- func (m *Cursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cursor) XXX_Merge(src proto.Message)
- func (m *Cursor) XXX_Size() int
- func (m *Cursor) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetId() string
- func (m *Event) GetPayload() []byte
- func (m *Event) GetTopic() *Topic
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type GoetheClient
- type GoetheServer
- type Goethe_ConsumeClient
- type Goethe_ConsumeServer
- type Topic
- func (*Topic) Descriptor() ([]byte, []int)
- func (m *Topic) GetId() string
- func (*Topic) ProtoMessage()
- func (m *Topic) Reset()
- func (m *Topic) String() string
- func (m *Topic) XXX_DiscardUnknown()
- func (m *Topic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Topic) XXX_Merge(src proto.Message)
- func (m *Topic) XXX_Size() int
- func (m *Topic) XXX_Unmarshal(b []byte) error
- type UnimplementedGoetheServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGoetheServer ¶
func RegisterGoetheServer(s *grpc.Server, srv GoetheServer)
Types ¶
type Cursor ¶
type Cursor struct { Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Consumer string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"` CurrentEvent *Event `protobuf:"bytes,3,opt,name=current_event,json=currentEvent,proto3" json:"current_event,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cursor) Descriptor ¶
func (*Cursor) GetConsumer ¶
func (*Cursor) GetCurrentEvent ¶
func (*Cursor) ProtoMessage ¶
func (*Cursor) ProtoMessage()
func (*Cursor) XXX_DiscardUnknown ¶
func (m *Cursor) XXX_DiscardUnknown()
func (*Cursor) XXX_Marshal ¶
func (*Cursor) XXX_Unmarshal ¶
type Event ¶
type Event struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Topic *Topic `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetPayload ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type GoetheClient ¶
type GoetheClient interface { Produce(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Event, error) Consume(ctx context.Context, opts ...grpc.CallOption) (Goethe_ConsumeClient, error) }
GoetheClient is the client API for Goethe service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGoetheClient ¶
func NewGoetheClient(cc *grpc.ClientConn) GoetheClient
type GoetheServer ¶
type GoetheServer interface { Produce(context.Context, *Event) (*Event, error) Consume(Goethe_ConsumeServer) error }
GoetheServer is the server API for Goethe service.
type Goethe_ConsumeClient ¶
type Goethe_ConsumeServer ¶
type Topic ¶
type Topic 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 (*Topic) Descriptor ¶
func (*Topic) ProtoMessage ¶
func (*Topic) ProtoMessage()
func (*Topic) XXX_DiscardUnknown ¶
func (m *Topic) XXX_DiscardUnknown()
func (*Topic) XXX_Marshal ¶
func (*Topic) XXX_Unmarshal ¶
type UnimplementedGoetheServer ¶
type UnimplementedGoetheServer struct { }
UnimplementedGoetheServer can be embedded to have forward compatible implementations.
func (*UnimplementedGoetheServer) Consume ¶
func (*UnimplementedGoetheServer) Consume(srv Goethe_ConsumeServer) error
Click to show internal directories.
Click to hide internal directories.