Documentation
¶
Index ¶
- Variables
- func RegisterEventSourceCommandServer(s *grpc.Server, srv EventSourceCommandServer)
- func RegisterEventSourceProjectionServer(s *grpc.Server, srv EventSourceProjectionServer)
- type Ack
- func (*Ack) Descriptor() ([]byte, []int)
- func (m *Ack) GetOk() bool
- func (*Ack) ProtoMessage()
- func (m *Ack) Reset()
- func (m *Ack) String() string
- func (m *Ack) XXX_DiscardUnknown()
- func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ack) XXX_Merge(src proto.Message)
- func (m *Ack) XXX_Size() int
- func (m *Ack) XXX_Unmarshal(b []byte) error
- type Aggregate
- func (*Aggregate) Descriptor() ([]byte, []int)
- func (m *Aggregate) GetData() []byte
- func (m *Aggregate) GetFormat() Aggregate_Format
- func (m *Aggregate) GetId() string
- func (m *Aggregate) GetMetadata() map[string]string
- func (m *Aggregate) GetSchema() string
- func (m *Aggregate) GetVersion() int64
- func (*Aggregate) ProtoMessage()
- func (m *Aggregate) Reset()
- func (m *Aggregate) String() string
- func (m *Aggregate) XXX_DiscardUnknown()
- func (m *Aggregate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Aggregate) XXX_Merge(src proto.Message)
- func (m *Aggregate) XXX_Size() int
- func (m *Aggregate) XXX_Unmarshal(b []byte) error
- type Aggregate_Format
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetAggregate() *Aggregate
- func (m *Event) GetCreated() *timestamp.Timestamp
- func (m *Event) GetMetadata() map[string]string
- func (m *Event) GetOriginIp() string
- func (m *Event) GetOriginName() string
- func (m *Event) GetPriority() int32
- func (m *Event) GetSignature() string
- func (m *Event) GetTopic() string
- 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 EventSourceCommandClient
- type EventSourceCommandServer
- type EventSourceProjectionClient
- type EventSourceProjectionServer
- type EventSourceProjection_ListClient
- type EventSourceProjection_ListServer
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetParams() map[string]string
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var Aggregate_Format_name = map[int32]string{
0: "PROTOBUF",
1: "JSON",
2: "STRING",
}
var Aggregate_Format_value = map[string]int32{
"PROTOBUF": 0,
"JSON": 1,
"STRING": 2,
}
Functions ¶
func RegisterEventSourceCommandServer ¶
func RegisterEventSourceCommandServer(s *grpc.Server, srv EventSourceCommandServer)
func RegisterEventSourceProjectionServer ¶
func RegisterEventSourceProjectionServer(s *grpc.Server, srv EventSourceProjectionServer)
Types ¶
type Ack ¶
type Ack struct {
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Message containing successfully event id
func (*Ack) Descriptor ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) XXX_DiscardUnknown ¶
func (m *Ack) XXX_DiscardUnknown()
func (*Ack) XXX_Unmarshal ¶
type Aggregate ¶
type Aggregate struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
Format Aggregate_Format `protobuf:"varint,4,opt,name=format,proto3,enum=es.Aggregate_Format" json:"format,omitempty"`
Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
Metadata map[string]string `` /* 157-byte string literal not displayed */
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Message containing the aggregate data.
func (*Aggregate) Descriptor ¶
func (*Aggregate) GetFormat ¶
func (m *Aggregate) GetFormat() Aggregate_Format
func (*Aggregate) GetMetadata ¶
func (*Aggregate) GetVersion ¶
func (*Aggregate) ProtoMessage ¶
func (*Aggregate) ProtoMessage()
func (*Aggregate) XXX_DiscardUnknown ¶
func (m *Aggregate) XXX_DiscardUnknown()
func (*Aggregate) XXX_Marshal ¶
func (*Aggregate) XXX_Unmarshal ¶
type Aggregate_Format ¶
type Aggregate_Format int32
const ( Aggregate_PROTOBUF Aggregate_Format = 0 Aggregate_JSON Aggregate_Format = 1 Aggregate_STRING Aggregate_Format = 2 )
func (Aggregate_Format) EnumDescriptor ¶
func (Aggregate_Format) EnumDescriptor() ([]byte, []int)
func (Aggregate_Format) String ¶
func (x Aggregate_Format) String() string
type Event ¶
type Event struct {
// Topic (name) of the event. These should be written in the past tense (snap_created)
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
// Aggregate to which the event refers to.
Aggregate *Aggregate `protobuf:"bytes,2,opt,name=aggregate,proto3" json:"aggregate,omitempty"`
// Priority of the event, where 0 is the highest priority.
Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
// Signature includes SHA1 signature computed against it's contents and signature of the previous event.
Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// Origin of the event. e.g. service name.
OriginName string `protobuf:"bytes,5,opt,name=origin_name,json=originName,proto3" json:"origin_name,omitempty"`
// Origin of the event. e.g. service ip address / browser.
OriginIp string `protobuf:"bytes,6,opt,name=origin_ip,json=originIp,proto3" json:"origin_ip,omitempty"`
// Metadata
Metadata map[string]string `` /* 157-byte string literal not displayed */
// Created has the identification of which service has created the event and
// respective timestamp at which the event ocurred
Created *timestamp.Timestamp `protobuf:"bytes,8,opt,name=created,proto3" json:"created,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Message containing the event data
func (*Event) Descriptor ¶
func (*Event) GetAggregate ¶
func (*Event) GetCreated ¶
func (*Event) GetMetadata ¶
func (*Event) GetOriginIp ¶
func (*Event) GetOriginName ¶
func (*Event) GetPriority ¶
func (*Event) GetSignature ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type EventSourceCommandClient ¶
type EventSourceCommandClient interface {
Create(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Ack, error)
Snap(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Ack, error)
}
EventSourceCommandClient is the client API for EventSourceCommand service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEventSourceCommandClient ¶
func NewEventSourceCommandClient(cc *grpc.ClientConn) EventSourceCommandClient
type EventSourceCommandServer ¶
type EventSourceCommandServer interface {
Create(context.Context, *Event) (*Ack, error)
Snap(context.Context, *Event) (*Ack, error)
}
EventSourceCommandServer is the server API for EventSourceCommand service.
type EventSourceProjectionClient ¶
type EventSourceProjectionClient interface {
Get(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Event, error)
List(ctx context.Context, in *Query, opts ...grpc.CallOption) (EventSourceProjection_ListClient, error)
}
EventSourceProjectionClient is the client API for EventSourceProjection service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEventSourceProjectionClient ¶
func NewEventSourceProjectionClient(cc *grpc.ClientConn) EventSourceProjectionClient
type EventSourceProjectionServer ¶
type EventSourceProjectionServer interface {
Get(context.Context, *Event) (*Event, error)
List(*Query, EventSourceProjection_ListServer) error
}
EventSourceProjectionServer is the server API for EventSourceProjection service.
type EventSourceProjection_ListClient ¶
type EventSourceProjection_ListClient interface {
Recv() (*Event, error)
grpc.ClientStream
}
type EventSourceProjection_ListServer ¶
type EventSourceProjection_ListServer interface {
Send(*Event) error
grpc.ServerStream
}
type Query ¶
type Query struct {
Params map[string]string `` /* 153-byte string literal not displayed */
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Message containing query parameters
func (*Query) Descriptor ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()