es

package
v0.0.0-...-2871c43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Aggregate_Format_name = map[int32]string{
	0: "PROTOBUF",
	1: "JSON",
	2: "STRING",
}
View Source
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) Descriptor() ([]byte, []int)

func (*Ack) GetOk

func (m *Ack) GetOk() bool

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) Reset

func (m *Ack) Reset()

func (*Ack) String

func (m *Ack) String() string

func (*Ack) XXX_DiscardUnknown

func (m *Ack) XXX_DiscardUnknown()

func (*Ack) XXX_Marshal

func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ack) XXX_Merge

func (m *Ack) XXX_Merge(src proto.Message)

func (*Ack) XXX_Size

func (m *Ack) XXX_Size() int

func (*Ack) XXX_Unmarshal

func (m *Ack) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Aggregate) GetData

func (m *Aggregate) GetData() []byte

func (*Aggregate) GetFormat

func (m *Aggregate) GetFormat() Aggregate_Format

func (*Aggregate) GetId

func (m *Aggregate) GetId() string

func (*Aggregate) GetMetadata

func (m *Aggregate) GetMetadata() map[string]string

func (*Aggregate) GetSchema

func (m *Aggregate) GetSchema() string

func (*Aggregate) GetVersion

func (m *Aggregate) GetVersion() int64

func (*Aggregate) ProtoMessage

func (*Aggregate) ProtoMessage()

func (*Aggregate) Reset

func (m *Aggregate) Reset()

func (*Aggregate) String

func (m *Aggregate) String() string

func (*Aggregate) XXX_DiscardUnknown

func (m *Aggregate) XXX_DiscardUnknown()

func (*Aggregate) XXX_Marshal

func (m *Aggregate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Aggregate) XXX_Merge

func (m *Aggregate) XXX_Merge(src proto.Message)

func (*Aggregate) XXX_Size

func (m *Aggregate) XXX_Size() int

func (*Aggregate) XXX_Unmarshal

func (m *Aggregate) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Event) GetAggregate

func (m *Event) GetAggregate() *Aggregate

func (*Event) GetCreated

func (m *Event) GetCreated() *timestamp.Timestamp

func (*Event) GetMetadata

func (m *Event) GetMetadata() map[string]string

func (*Event) GetOriginIp

func (m *Event) GetOriginIp() string

func (*Event) GetOriginName

func (m *Event) GetOriginName() string

func (*Event) GetPriority

func (m *Event) GetPriority() int32

func (*Event) GetSignature

func (m *Event) GetSignature() string

func (*Event) GetTopic

func (m *Event) GetTopic() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Query) GetParams

func (m *Query) GetParams() map[string]string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) String

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Query) XXX_Merge

func (m *Query) XXX_Merge(src proto.Message)

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

func (m *Query) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL