pb

package
v0.0.0-...-090737f Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

event.proto

It has these top-level messages:

Event

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// Unique ID of the event.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The time given by the source producer of the event.
	// This can be manually set in code, otherwise it will be
	// set by the client producing the event.
	Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"`
	// Acknowledged timestamp of the event. This is provided by the backend,
	// but a field is here if the event is republished as-is.
	AckTime int64 `protobuf:"varint,11,opt,name=ack_time,json=ackTime" json:"ack_time,omitempty"`
	// The event type.
	Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	// An optional event ID that is the cause of this event.
	Cause string `protobuf:"bytes,5,opt,name=cause" json:"cause,omitempty"`
	// The client that produced this event.
	Client string `protobuf:"bytes,6,opt,name=client" json:"client,omitempty"`
	// Schema is the name of the schema of the encoded data.
	// This will likely be a name and optionally a version suffix.
	Schema string `protobuf:"bytes,4,opt,name=schema" json:"schema,omitempty"`
	// Encoding of the event data.
	Encoding string `protobuf:"bytes,8,opt,name=encoding" json:"encoding,omitempty"`
	// Encoded event data.
	Data []byte `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	// Arbitrary metadata as a set of key-value pairs. This can be used
	// for adding upstream user/client info, authorization tokens, etc.
	Meta map[string]string `` /* 129-byte string literal not displayed */
	// Key of the "aggregate" that this event is about.
	Aggregate string `protobuf:"bytes,12,opt,name=aggregate" json:"aggregate,omitempty"`
}

func (*Event) Descriptor

func (*Event) Descriptor() ([]byte, []int)

func (*Event) GetAckTime

func (m *Event) GetAckTime() int64

func (*Event) GetAggregate

func (m *Event) GetAggregate() string

func (*Event) GetCause

func (m *Event) GetCause() string

func (*Event) GetClient

func (m *Event) GetClient() string

func (*Event) GetData

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

func (*Event) GetEncoding

func (m *Event) GetEncoding() string

func (*Event) GetId

func (m *Event) GetId() string

func (*Event) GetMeta

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

func (*Event) GetSchema

func (m *Event) GetSchema() string

func (*Event) GetTime

func (m *Event) GetTime() int64

func (*Event) GetType

func (m *Event) GetType() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

Jump to

Keyboard shortcuts

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