Documentation ¶
Overview ¶
Package event is a generated protocol buffer package.
It is generated from these files:
srv/event/proto/event.proto
It has these top-level messages:
Result Request
Index ¶
- func RegisterEventHandler(s server.Server, hdlr EventHandler, opts ...server.HandlerOption) error
- type EventHandler
- type EventService
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetId() string
- func (m *Request) GetMessage() string
- func (m *Request) GetTimestamp() int64
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetMsg() string
- func (m *Result) GetState() int64
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) String() string
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEventHandler ¶
func RegisterEventHandler(s server.Server, hdlr EventHandler, opts ...server.HandlerOption) error
Types ¶
type EventHandler ¶
type EventService ¶
type EventService interface {
SendEvent(ctx context.Context, in *Request, opts ...client.CallOption) (*Result, error)
}
func NewEventService ¶
func NewEventService(name string, c client.Client) EventService
type Request ¶
type Request struct { // unique id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // unix timestamp Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // message Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
message
func (*Request) Descriptor ¶
func (*Request) GetMessage ¶
func (*Request) GetTimestamp ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Result ¶
type Result struct { State int64 `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Result) Descriptor ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.