Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_any_proto protoreflect.FileDescriptor
Functions ¶
func GetTypeName ¶
GetTypeName returns the interfaces name
Types ¶
type Any ¶
type Any struct { IsPb bool `protobuf:"varint,3,opt,name=is_pb,json=isPb,proto3" json:"is_pb,omitempty"` Anything *any.Any `protobuf:"bytes,4,opt,name=anything,proto3" json:"anything,omitempty"` // contains filtered or unexported fields }
func (*Any) Descriptor
deprecated
func (*Any) GetAnything ¶
func (*Any) ProtoMessage ¶
func (*Any) ProtoMessage()
func (*Any) ProtoReflect ¶
func (x *Any) ProtoReflect() protoreflect.Message
type Queue ¶
type Queue struct { // QueueBuffer provides a buffer for the queue QueueBuffer // Catalog provides a catalog of types for the queue Catalog *TypeCatalog // contains filtered or unexported fields }
Queue provides a FIFO queue which is concurrent safe
type QueueBuffer ¶
type QueueBuffer []byte
QueueBuffer will be used to buffer a queue
func (*QueueBuffer) Next ¶
func (b *QueueBuffer) Next(n int) []byte
Next returns the next n bytes from the buffer
type TypeCatalog ¶
TypeCatalog is an abstraction for dealing with oplog data and their underlying types
func NewTypeCatalog ¶
func NewTypeCatalog(withTypes ...interface{}) (*TypeCatalog, error)
NewTypeCatalog creates a catalog with the types you pass in
func (TypeCatalog) Get ¶
func (t TypeCatalog) Get(name string) (interface{}, error)
Get retrieves the interface via a name
func (TypeCatalog) Set ¶
func (t TypeCatalog) Set(i interface{}) error
Set creates an entry in the catalog for the interface
Click to show internal directories.
Click to hide internal directories.