Documentation ¶
Index ¶
- Variables
- func RegisterCrdtServer(s *grpc.Server, srv CrdtServer)
- func RegisterEntityDiscoveryServer(s *grpc.Server, srv EntityDiscoveryServer)
- type ClientAction
- func (*ClientAction) Descriptor() ([]byte, []int)
- func (m *ClientAction) GetAction() isClientAction_Action
- func (m *ClientAction) GetFailure() *Failure
- func (m *ClientAction) GetForward() *Forward
- func (m *ClientAction) GetReply() *Reply
- func (*ClientAction) ProtoMessage()
- func (m *ClientAction) Reset()
- func (m *ClientAction) String() string
- func (m *ClientAction) XXX_DiscardUnknown()
- func (m *ClientAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientAction) XXX_Merge(src proto.Message)
- func (*ClientAction) XXX_OneofWrappers() []interface{}
- func (m *ClientAction) XXX_Size() int
- func (m *ClientAction) XXX_Unmarshal(b []byte) error
- type ClientAction_Failure
- type ClientAction_Forward
- type ClientAction_Reply
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetEntityId() string
- func (m *Command) GetId() int64
- func (m *Command) GetName() string
- func (m *Command) GetPayload() *any.Any
- func (m *Command) GetStreamed() bool
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Command) XXX_Merge(src proto.Message)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type CrdtClient
- type CrdtClock
- type CrdtDelete
- func (*CrdtDelete) Descriptor() ([]byte, []int)
- func (*CrdtDelete) ProtoMessage()
- func (m *CrdtDelete) Reset()
- func (m *CrdtDelete) String() string
- func (m *CrdtDelete) XXX_DiscardUnknown()
- func (m *CrdtDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtDelete) XXX_Merge(src proto.Message)
- func (m *CrdtDelete) XXX_Size() int
- func (m *CrdtDelete) XXX_Unmarshal(b []byte) error
- type CrdtDelta
- func (*CrdtDelta) Descriptor() ([]byte, []int)
- func (m *CrdtDelta) GetDelta() isCrdtDelta_Delta
- func (m *CrdtDelta) GetFlag() *FlagDelta
- func (m *CrdtDelta) GetGcounter() *GCounterDelta
- func (m *CrdtDelta) GetGset() *GSetDelta
- func (m *CrdtDelta) GetLwwregister() *LWWRegisterDelta
- func (m *CrdtDelta) GetOrmap() *ORMapDelta
- func (m *CrdtDelta) GetOrset() *ORSetDelta
- func (m *CrdtDelta) GetPncounter() *PNCounterDelta
- func (m *CrdtDelta) GetVote() *VoteDelta
- func (*CrdtDelta) ProtoMessage()
- func (m *CrdtDelta) Reset()
- func (m *CrdtDelta) String() string
- func (m *CrdtDelta) XXX_DiscardUnknown()
- func (m *CrdtDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtDelta) XXX_Merge(src proto.Message)
- func (*CrdtDelta) XXX_OneofWrappers() []interface{}
- func (m *CrdtDelta) XXX_Size() int
- func (m *CrdtDelta) XXX_Unmarshal(b []byte) error
- type CrdtDelta_Flag
- type CrdtDelta_Gcounter
- type CrdtDelta_Gset
- type CrdtDelta_Lwwregister
- type CrdtDelta_Ormap
- type CrdtDelta_Orset
- type CrdtDelta_Pncounter
- type CrdtDelta_Vote
- type CrdtInit
- func (*CrdtInit) Descriptor() ([]byte, []int)
- func (m *CrdtInit) GetEntityId() string
- func (m *CrdtInit) GetServiceName() string
- func (m *CrdtInit) GetState() *CrdtState
- func (*CrdtInit) ProtoMessage()
- func (m *CrdtInit) Reset()
- func (m *CrdtInit) String() string
- func (m *CrdtInit) XXX_DiscardUnknown()
- func (m *CrdtInit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtInit) XXX_Merge(src proto.Message)
- func (m *CrdtInit) XXX_Size() int
- func (m *CrdtInit) XXX_Unmarshal(b []byte) error
- type CrdtReply
- func (*CrdtReply) Descriptor() ([]byte, []int)
- func (m *CrdtReply) GetClientAction() *ClientAction
- func (m *CrdtReply) GetCommandId() int64
- func (m *CrdtReply) GetSideEffects() []*SideEffect
- func (m *CrdtReply) GetStateAction() *CrdtStateAction
- func (m *CrdtReply) GetStreamed() bool
- func (*CrdtReply) ProtoMessage()
- func (m *CrdtReply) Reset()
- func (m *CrdtReply) String() string
- func (m *CrdtReply) XXX_DiscardUnknown()
- func (m *CrdtReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtReply) XXX_Merge(src proto.Message)
- func (m *CrdtReply) XXX_Size() int
- func (m *CrdtReply) XXX_Unmarshal(b []byte) error
- type CrdtServer
- type CrdtState
- func (*CrdtState) Descriptor() ([]byte, []int)
- func (m *CrdtState) GetFlag() *FlagState
- func (m *CrdtState) GetGcounter() *GCounterState
- func (m *CrdtState) GetGset() *GSetState
- func (m *CrdtState) GetLwwregister() *LWWRegisterState
- func (m *CrdtState) GetOrmap() *ORMapState
- func (m *CrdtState) GetOrset() *ORSetState
- func (m *CrdtState) GetPncounter() *PNCounterState
- func (m *CrdtState) GetState() isCrdtState_State
- func (m *CrdtState) GetVote() *VoteState
- func (*CrdtState) ProtoMessage()
- func (m *CrdtState) Reset()
- func (m *CrdtState) String() string
- func (m *CrdtState) XXX_DiscardUnknown()
- func (m *CrdtState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtState) XXX_Merge(src proto.Message)
- func (*CrdtState) XXX_OneofWrappers() []interface{}
- func (m *CrdtState) XXX_Size() int
- func (m *CrdtState) XXX_Unmarshal(b []byte) error
- type CrdtStateAction
- func (*CrdtStateAction) Descriptor() ([]byte, []int)
- func (m *CrdtStateAction) GetAction() isCrdtStateAction_Action
- func (m *CrdtStateAction) GetCreate() *CrdtState
- func (m *CrdtStateAction) GetDelete() *CrdtDelete
- func (m *CrdtStateAction) GetUpdate() *CrdtDelta
- func (m *CrdtStateAction) GetWriteConsistency() CrdtWriteConsistency
- func (*CrdtStateAction) ProtoMessage()
- func (m *CrdtStateAction) Reset()
- func (m *CrdtStateAction) String() string
- func (m *CrdtStateAction) XXX_DiscardUnknown()
- func (m *CrdtStateAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtStateAction) XXX_Merge(src proto.Message)
- func (*CrdtStateAction) XXX_OneofWrappers() []interface{}
- func (m *CrdtStateAction) XXX_Size() int
- func (m *CrdtStateAction) XXX_Unmarshal(b []byte) error
- type CrdtStateAction_Create
- type CrdtStateAction_Delete
- type CrdtStateAction_Update
- type CrdtState_Flag
- type CrdtState_Gcounter
- type CrdtState_Gset
- type CrdtState_Lwwregister
- type CrdtState_Ormap
- type CrdtState_Orset
- type CrdtState_Pncounter
- type CrdtState_Vote
- type CrdtStreamCancelledResponse
- func (*CrdtStreamCancelledResponse) Descriptor() ([]byte, []int)
- func (m *CrdtStreamCancelledResponse) GetCommandId() int64
- func (m *CrdtStreamCancelledResponse) GetSideEffects() []*SideEffect
- func (m *CrdtStreamCancelledResponse) GetStateAction() *CrdtStateAction
- func (*CrdtStreamCancelledResponse) ProtoMessage()
- func (m *CrdtStreamCancelledResponse) Reset()
- func (m *CrdtStreamCancelledResponse) String() string
- func (m *CrdtStreamCancelledResponse) XXX_DiscardUnknown()
- func (m *CrdtStreamCancelledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtStreamCancelledResponse) XXX_Merge(src proto.Message)
- func (m *CrdtStreamCancelledResponse) XXX_Size() int
- func (m *CrdtStreamCancelledResponse) XXX_Unmarshal(b []byte) error
- type CrdtStreamIn
- func (*CrdtStreamIn) Descriptor() ([]byte, []int)
- func (m *CrdtStreamIn) GetChanged() *CrdtDelta
- func (m *CrdtStreamIn) GetCommand() *Command
- func (m *CrdtStreamIn) GetDeleted() *CrdtDelete
- func (m *CrdtStreamIn) GetInit() *CrdtInit
- func (m *CrdtStreamIn) GetMessage() isCrdtStreamIn_Message
- func (m *CrdtStreamIn) GetState() *CrdtState
- func (m *CrdtStreamIn) GetStreamCancelled() *StreamCancelled
- func (*CrdtStreamIn) ProtoMessage()
- func (m *CrdtStreamIn) Reset()
- func (m *CrdtStreamIn) String() string
- func (m *CrdtStreamIn) XXX_DiscardUnknown()
- func (m *CrdtStreamIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtStreamIn) XXX_Merge(src proto.Message)
- func (*CrdtStreamIn) XXX_OneofWrappers() []interface{}
- func (m *CrdtStreamIn) XXX_Size() int
- func (m *CrdtStreamIn) XXX_Unmarshal(b []byte) error
- type CrdtStreamIn_Changed
- type CrdtStreamIn_Command
- type CrdtStreamIn_Deleted
- type CrdtStreamIn_Init
- type CrdtStreamIn_State
- type CrdtStreamIn_StreamCancelled
- type CrdtStreamOut
- func (*CrdtStreamOut) Descriptor() ([]byte, []int)
- func (m *CrdtStreamOut) GetFailure() *Failure
- func (m *CrdtStreamOut) GetMessage() isCrdtStreamOut_Message
- func (m *CrdtStreamOut) GetReply() *CrdtReply
- func (m *CrdtStreamOut) GetStreamCancelledResponse() *CrdtStreamCancelledResponse
- func (m *CrdtStreamOut) GetStreamedMessage() *CrdtStreamedMessage
- func (*CrdtStreamOut) ProtoMessage()
- func (m *CrdtStreamOut) Reset()
- func (m *CrdtStreamOut) String() string
- func (m *CrdtStreamOut) XXX_DiscardUnknown()
- func (m *CrdtStreamOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtStreamOut) XXX_Merge(src proto.Message)
- func (*CrdtStreamOut) XXX_OneofWrappers() []interface{}
- func (m *CrdtStreamOut) XXX_Size() int
- func (m *CrdtStreamOut) XXX_Unmarshal(b []byte) error
- type CrdtStreamOut_Failure
- type CrdtStreamOut_Reply
- type CrdtStreamOut_StreamCancelledResponse
- type CrdtStreamOut_StreamedMessage
- type CrdtStreamedMessage
- func (*CrdtStreamedMessage) Descriptor() ([]byte, []int)
- func (m *CrdtStreamedMessage) GetClientAction() *ClientAction
- func (m *CrdtStreamedMessage) GetCommandId() int64
- func (m *CrdtStreamedMessage) GetEndStream() bool
- func (m *CrdtStreamedMessage) GetSideEffects() []*SideEffect
- func (*CrdtStreamedMessage) ProtoMessage()
- func (m *CrdtStreamedMessage) Reset()
- func (m *CrdtStreamedMessage) String() string
- func (m *CrdtStreamedMessage) XXX_DiscardUnknown()
- func (m *CrdtStreamedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrdtStreamedMessage) XXX_Merge(src proto.Message)
- func (m *CrdtStreamedMessage) XXX_Size() int
- func (m *CrdtStreamedMessage) XXX_Unmarshal(b []byte) error
- type CrdtWriteConsistency
- type Crdt_HandleClient
- type Crdt_HandleServer
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)
- func (m *Entity) GetEntityType() string
- func (m *Entity) GetPersistenceId() string
- func (m *Entity) GetServiceName() string
- func (*Entity) ProtoMessage()
- func (m *Entity) Reset()
- func (m *Entity) String() string
- func (m *Entity) XXX_DiscardUnknown()
- func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entity) XXX_Merge(src proto.Message)
- func (m *Entity) XXX_Size() int
- func (m *Entity) XXX_Unmarshal(b []byte) error
- type EntityDiscoveryClient
- type EntityDiscoveryServer
- type EntitySpec
- func (*EntitySpec) Descriptor() ([]byte, []int)
- func (m *EntitySpec) GetEntities() []*Entity
- func (m *EntitySpec) GetProto() []byte
- func (m *EntitySpec) GetServiceInfo() *ServiceInfo
- func (*EntitySpec) ProtoMessage()
- func (m *EntitySpec) Reset()
- func (m *EntitySpec) String() string
- func (m *EntitySpec) XXX_DiscardUnknown()
- func (m *EntitySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EntitySpec) XXX_Merge(src proto.Message)
- func (m *EntitySpec) XXX_Size() int
- func (m *EntitySpec) XXX_Unmarshal(b []byte) error
- type Failure
- func (*Failure) Descriptor() ([]byte, []int)
- func (m *Failure) GetCommandId() int64
- func (m *Failure) GetDescription() string
- func (*Failure) ProtoMessage()
- func (m *Failure) Reset()
- func (m *Failure) String() string
- func (m *Failure) XXX_DiscardUnknown()
- func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Failure) XXX_Merge(src proto.Message)
- func (m *Failure) XXX_Size() int
- func (m *Failure) XXX_Unmarshal(b []byte) error
- type FlagDelta
- func (*FlagDelta) Descriptor() ([]byte, []int)
- func (m *FlagDelta) GetValue() bool
- func (*FlagDelta) ProtoMessage()
- func (m *FlagDelta) Reset()
- func (m *FlagDelta) String() string
- func (m *FlagDelta) XXX_DiscardUnknown()
- func (m *FlagDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlagDelta) XXX_Merge(src proto.Message)
- func (m *FlagDelta) XXX_Size() int
- func (m *FlagDelta) XXX_Unmarshal(b []byte) error
- type FlagState
- func (*FlagState) Descriptor() ([]byte, []int)
- func (m *FlagState) GetValue() bool
- func (*FlagState) ProtoMessage()
- func (m *FlagState) Reset()
- func (m *FlagState) String() string
- func (m *FlagState) XXX_DiscardUnknown()
- func (m *FlagState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlagState) XXX_Merge(src proto.Message)
- func (m *FlagState) XXX_Size() int
- func (m *FlagState) XXX_Unmarshal(b []byte) error
- type Forward
- func (*Forward) Descriptor() ([]byte, []int)
- func (m *Forward) GetCommandName() string
- func (m *Forward) GetPayload() *any.Any
- func (m *Forward) GetServiceName() string
- func (*Forward) ProtoMessage()
- func (m *Forward) Reset()
- func (m *Forward) String() string
- func (m *Forward) XXX_DiscardUnknown()
- func (m *Forward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Forward) XXX_Merge(src proto.Message)
- func (m *Forward) XXX_Size() int
- func (m *Forward) XXX_Unmarshal(b []byte) error
- type GCounterDelta
- func (*GCounterDelta) Descriptor() ([]byte, []int)
- func (m *GCounterDelta) GetIncrement() uint64
- func (*GCounterDelta) ProtoMessage()
- func (m *GCounterDelta) Reset()
- func (m *GCounterDelta) String() string
- func (m *GCounterDelta) XXX_DiscardUnknown()
- func (m *GCounterDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GCounterDelta) XXX_Merge(src proto.Message)
- func (m *GCounterDelta) XXX_Size() int
- func (m *GCounterDelta) XXX_Unmarshal(b []byte) error
- type GCounterState
- func (*GCounterState) Descriptor() ([]byte, []int)
- func (m *GCounterState) GetValue() uint64
- func (*GCounterState) ProtoMessage()
- func (m *GCounterState) Reset()
- func (m *GCounterState) String() string
- func (m *GCounterState) XXX_DiscardUnknown()
- func (m *GCounterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GCounterState) XXX_Merge(src proto.Message)
- func (m *GCounterState) XXX_Size() int
- func (m *GCounterState) XXX_Unmarshal(b []byte) error
- type GSetDelta
- func (*GSetDelta) Descriptor() ([]byte, []int)
- func (m *GSetDelta) GetAdded() []*any.Any
- func (*GSetDelta) ProtoMessage()
- func (m *GSetDelta) Reset()
- func (m *GSetDelta) String() string
- func (m *GSetDelta) XXX_DiscardUnknown()
- func (m *GSetDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GSetDelta) XXX_Merge(src proto.Message)
- func (m *GSetDelta) XXX_Size() int
- func (m *GSetDelta) XXX_Unmarshal(b []byte) error
- type GSetState
- func (*GSetState) Descriptor() ([]byte, []int)
- func (m *GSetState) GetItems() []*any.Any
- func (*GSetState) ProtoMessage()
- func (m *GSetState) Reset()
- func (m *GSetState) String() string
- func (m *GSetState) XXX_DiscardUnknown()
- func (m *GSetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GSetState) XXX_Merge(src proto.Message)
- func (m *GSetState) XXX_Size() int
- func (m *GSetState) XXX_Unmarshal(b []byte) error
- type LWWRegisterDelta
- func (*LWWRegisterDelta) Descriptor() ([]byte, []int)
- func (m *LWWRegisterDelta) GetClock() CrdtClock
- func (m *LWWRegisterDelta) GetCustomClockValue() int64
- func (m *LWWRegisterDelta) GetValue() *any.Any
- func (*LWWRegisterDelta) ProtoMessage()
- func (m *LWWRegisterDelta) Reset()
- func (m *LWWRegisterDelta) String() string
- func (m *LWWRegisterDelta) XXX_DiscardUnknown()
- func (m *LWWRegisterDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LWWRegisterDelta) XXX_Merge(src proto.Message)
- func (m *LWWRegisterDelta) XXX_Size() int
- func (m *LWWRegisterDelta) XXX_Unmarshal(b []byte) error
- type LWWRegisterState
- func (*LWWRegisterState) Descriptor() ([]byte, []int)
- func (m *LWWRegisterState) GetClock() CrdtClock
- func (m *LWWRegisterState) GetCustomClockValue() int64
- func (m *LWWRegisterState) GetValue() *any.Any
- func (*LWWRegisterState) ProtoMessage()
- func (m *LWWRegisterState) Reset()
- func (m *LWWRegisterState) String() string
- func (m *LWWRegisterState) XXX_DiscardUnknown()
- func (m *LWWRegisterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LWWRegisterState) XXX_Merge(src proto.Message)
- func (m *LWWRegisterState) XXX_Size() int
- func (m *LWWRegisterState) XXX_Unmarshal(b []byte) error
- type ORMapDelta
- func (*ORMapDelta) Descriptor() ([]byte, []int)
- func (m *ORMapDelta) GetAdded() []*ORMapEntry
- func (m *ORMapDelta) GetCleared() bool
- func (m *ORMapDelta) GetRemoved() []*any.Any
- func (m *ORMapDelta) GetUpdated() []*ORMapEntryDelta
- func (*ORMapDelta) ProtoMessage()
- func (m *ORMapDelta) Reset()
- func (m *ORMapDelta) String() string
- func (m *ORMapDelta) XXX_DiscardUnknown()
- func (m *ORMapDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ORMapDelta) XXX_Merge(src proto.Message)
- func (m *ORMapDelta) XXX_Size() int
- func (m *ORMapDelta) XXX_Unmarshal(b []byte) error
- type ORMapEntry
- func (*ORMapEntry) Descriptor() ([]byte, []int)
- func (m *ORMapEntry) GetKey() *any.Any
- func (m *ORMapEntry) GetValue() *CrdtState
- func (*ORMapEntry) ProtoMessage()
- func (m *ORMapEntry) Reset()
- func (m *ORMapEntry) String() string
- func (m *ORMapEntry) XXX_DiscardUnknown()
- func (m *ORMapEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ORMapEntry) XXX_Merge(src proto.Message)
- func (m *ORMapEntry) XXX_Size() int
- func (m *ORMapEntry) XXX_Unmarshal(b []byte) error
- type ORMapEntryDelta
- func (*ORMapEntryDelta) Descriptor() ([]byte, []int)
- func (m *ORMapEntryDelta) GetDelta() *CrdtDelta
- func (m *ORMapEntryDelta) GetKey() *any.Any
- func (*ORMapEntryDelta) ProtoMessage()
- func (m *ORMapEntryDelta) Reset()
- func (m *ORMapEntryDelta) String() string
- func (m *ORMapEntryDelta) XXX_DiscardUnknown()
- func (m *ORMapEntryDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ORMapEntryDelta) XXX_Merge(src proto.Message)
- func (m *ORMapEntryDelta) XXX_Size() int
- func (m *ORMapEntryDelta) XXX_Unmarshal(b []byte) error
- type ORMapState
- func (*ORMapState) Descriptor() ([]byte, []int)
- func (m *ORMapState) GetEntries() []*ORMapEntry
- func (*ORMapState) ProtoMessage()
- func (m *ORMapState) Reset()
- func (m *ORMapState) String() string
- func (m *ORMapState) XXX_DiscardUnknown()
- func (m *ORMapState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ORMapState) XXX_Merge(src proto.Message)
- func (m *ORMapState) XXX_Size() int
- func (m *ORMapState) XXX_Unmarshal(b []byte) error
- type ORSetDelta
- func (*ORSetDelta) Descriptor() ([]byte, []int)
- func (m *ORSetDelta) GetAdded() []*any.Any
- func (m *ORSetDelta) GetCleared() bool
- func (m *ORSetDelta) GetRemoved() []*any.Any
- func (*ORSetDelta) ProtoMessage()
- func (m *ORSetDelta) Reset()
- func (m *ORSetDelta) String() string
- func (m *ORSetDelta) XXX_DiscardUnknown()
- func (m *ORSetDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ORSetDelta) XXX_Merge(src proto.Message)
- func (m *ORSetDelta) XXX_Size() int
- func (m *ORSetDelta) XXX_Unmarshal(b []byte) error
- type ORSetState
- func (*ORSetState) Descriptor() ([]byte, []int)
- func (m *ORSetState) GetItems() []*any.Any
- func (*ORSetState) ProtoMessage()
- func (m *ORSetState) Reset()
- func (m *ORSetState) String() string
- func (m *ORSetState) XXX_DiscardUnknown()
- func (m *ORSetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ORSetState) XXX_Merge(src proto.Message)
- func (m *ORSetState) XXX_Size() int
- func (m *ORSetState) XXX_Unmarshal(b []byte) error
- type PNCounterDelta
- func (*PNCounterDelta) Descriptor() ([]byte, []int)
- func (m *PNCounterDelta) GetChange() int64
- func (*PNCounterDelta) ProtoMessage()
- func (m *PNCounterDelta) Reset()
- func (m *PNCounterDelta) String() string
- func (m *PNCounterDelta) XXX_DiscardUnknown()
- func (m *PNCounterDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PNCounterDelta) XXX_Merge(src proto.Message)
- func (m *PNCounterDelta) XXX_Size() int
- func (m *PNCounterDelta) XXX_Unmarshal(b []byte) error
- type PNCounterState
- func (*PNCounterState) Descriptor() ([]byte, []int)
- func (m *PNCounterState) GetValue() int64
- func (*PNCounterState) ProtoMessage()
- func (m *PNCounterState) Reset()
- func (m *PNCounterState) String() string
- func (m *PNCounterState) XXX_DiscardUnknown()
- func (m *PNCounterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PNCounterState) XXX_Merge(src proto.Message)
- func (m *PNCounterState) XXX_Size() int
- func (m *PNCounterState) XXX_Unmarshal(b []byte) error
- type ProxyInfo
- func (*ProxyInfo) Descriptor() ([]byte, []int)
- func (m *ProxyInfo) GetProtocolMajorVersion() int32
- func (m *ProxyInfo) GetProtocolMinorVersion() int32
- func (m *ProxyInfo) GetProxyName() string
- func (m *ProxyInfo) GetProxyVersion() string
- func (m *ProxyInfo) GetSupportedEntityTypes() []string
- func (*ProxyInfo) ProtoMessage()
- func (m *ProxyInfo) Reset()
- func (m *ProxyInfo) String() string
- func (m *ProxyInfo) XXX_DiscardUnknown()
- func (m *ProxyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProxyInfo) XXX_Merge(src proto.Message)
- func (m *ProxyInfo) XXX_Size() int
- func (m *ProxyInfo) XXX_Unmarshal(b []byte) error
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetPayload() *any.Any
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) String() string
- func (m *Reply) XXX_DiscardUnknown()
- func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reply) XXX_Merge(src proto.Message)
- func (m *Reply) XXX_Size() int
- func (m *Reply) XXX_Unmarshal(b []byte) error
- type ServiceInfo
- func (*ServiceInfo) Descriptor() ([]byte, []int)
- func (m *ServiceInfo) GetServiceName() string
- func (m *ServiceInfo) GetServiceRuntime() string
- func (m *ServiceInfo) GetServiceVersion() string
- func (m *ServiceInfo) GetSupportLibraryName() string
- func (m *ServiceInfo) GetSupportLibraryVersion() string
- func (*ServiceInfo) ProtoMessage()
- func (m *ServiceInfo) Reset()
- func (m *ServiceInfo) String() string
- func (m *ServiceInfo) XXX_DiscardUnknown()
- func (m *ServiceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServiceInfo) XXX_Merge(src proto.Message)
- func (m *ServiceInfo) XXX_Size() int
- func (m *ServiceInfo) XXX_Unmarshal(b []byte) error
- type SideEffect
- func (*SideEffect) Descriptor() ([]byte, []int)
- func (m *SideEffect) GetCommandName() string
- func (m *SideEffect) GetPayload() *any.Any
- func (m *SideEffect) GetServiceName() string
- func (m *SideEffect) GetSynchronous() bool
- func (*SideEffect) ProtoMessage()
- func (m *SideEffect) Reset()
- func (m *SideEffect) String() string
- func (m *SideEffect) XXX_DiscardUnknown()
- func (m *SideEffect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SideEffect) XXX_Merge(src proto.Message)
- func (m *SideEffect) XXX_Size() int
- func (m *SideEffect) XXX_Unmarshal(b []byte) error
- type StreamCancelled
- func (*StreamCancelled) Descriptor() ([]byte, []int)
- func (m *StreamCancelled) GetEntityId() string
- func (m *StreamCancelled) GetId() int64
- func (*StreamCancelled) ProtoMessage()
- func (m *StreamCancelled) Reset()
- func (m *StreamCancelled) String() string
- func (m *StreamCancelled) XXX_DiscardUnknown()
- func (m *StreamCancelled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamCancelled) XXX_Merge(src proto.Message)
- func (m *StreamCancelled) XXX_Size() int
- func (m *StreamCancelled) XXX_Unmarshal(b []byte) error
- type UnimplementedCrdtServer
- type UnimplementedEntityDiscoveryServer
- type UserFunctionError
- func (*UserFunctionError) Descriptor() ([]byte, []int)
- func (m *UserFunctionError) GetMessage() string
- func (*UserFunctionError) ProtoMessage()
- func (m *UserFunctionError) Reset()
- func (m *UserFunctionError) String() string
- func (m *UserFunctionError) XXX_DiscardUnknown()
- func (m *UserFunctionError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserFunctionError) XXX_Merge(src proto.Message)
- func (m *UserFunctionError) XXX_Size() int
- func (m *UserFunctionError) XXX_Unmarshal(b []byte) error
- type VoteDelta
- func (*VoteDelta) Descriptor() ([]byte, []int)
- func (m *VoteDelta) GetSelfVote() bool
- func (m *VoteDelta) GetTotalVoters() int32
- func (m *VoteDelta) GetVotesFor() int32
- func (*VoteDelta) ProtoMessage()
- func (m *VoteDelta) Reset()
- func (m *VoteDelta) String() string
- func (m *VoteDelta) XXX_DiscardUnknown()
- func (m *VoteDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteDelta) XXX_Merge(src proto.Message)
- func (m *VoteDelta) XXX_Size() int
- func (m *VoteDelta) XXX_Unmarshal(b []byte) error
- type VoteState
- func (*VoteState) Descriptor() ([]byte, []int)
- func (m *VoteState) GetSelfVote() bool
- func (m *VoteState) GetTotalVoters() uint32
- func (m *VoteState) GetVotesFor() uint32
- func (*VoteState) ProtoMessage()
- func (m *VoteState) Reset()
- func (m *VoteState) String() string
- func (m *VoteState) XXX_DiscardUnknown()
- func (m *VoteState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteState) XXX_Merge(src proto.Message)
- func (m *VoteState) XXX_Size() int
- func (m *VoteState) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var CrdtClock_name = map[int32]string{
0: "DEFAULT",
1: "REVERSE",
2: "CUSTOM",
3: "CUSTOM_AUTO_INCREMENT",
}
var CrdtClock_value = map[string]int32{
"DEFAULT": 0,
"REVERSE": 1,
"CUSTOM": 2,
"CUSTOM_AUTO_INCREMENT": 3,
}
var CrdtWriteConsistency_name = map[int32]string{
0: "LOCAL",
1: "MAJORITY",
2: "ALL",
}
var CrdtWriteConsistency_value = map[string]int32{
"LOCAL": 0,
"MAJORITY": 1,
"ALL": 2,
}
Functions ¶
func RegisterCrdtServer ¶
func RegisterCrdtServer(s *grpc.Server, srv CrdtServer)
func RegisterEntityDiscoveryServer ¶
func RegisterEntityDiscoveryServer(s *grpc.Server, srv EntityDiscoveryServer)
Types ¶
type ClientAction ¶
type ClientAction struct { // Types that are valid to be assigned to Action: // *ClientAction_Reply // *ClientAction_Forward // *ClientAction_Failure Action isClientAction_Action `protobuf_oneof:"action"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An action for the client
func (*ClientAction) Descriptor ¶
func (*ClientAction) Descriptor() ([]byte, []int)
func (*ClientAction) GetAction ¶
func (m *ClientAction) GetAction() isClientAction_Action
func (*ClientAction) GetFailure ¶
func (m *ClientAction) GetFailure() *Failure
func (*ClientAction) GetForward ¶
func (m *ClientAction) GetForward() *Forward
func (*ClientAction) GetReply ¶
func (m *ClientAction) GetReply() *Reply
func (*ClientAction) ProtoMessage ¶
func (*ClientAction) ProtoMessage()
func (*ClientAction) Reset ¶
func (m *ClientAction) Reset()
func (*ClientAction) String ¶
func (m *ClientAction) String() string
func (*ClientAction) XXX_DiscardUnknown ¶
func (m *ClientAction) XXX_DiscardUnknown()
func (*ClientAction) XXX_Marshal ¶
func (m *ClientAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientAction) XXX_Merge ¶
func (m *ClientAction) XXX_Merge(src proto.Message)
func (*ClientAction) XXX_OneofWrappers ¶
func (*ClientAction) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ClientAction) XXX_Size ¶
func (m *ClientAction) XXX_Size() int
func (*ClientAction) XXX_Unmarshal ¶
func (m *ClientAction) XXX_Unmarshal(b []byte) error
type ClientAction_Failure ¶
type ClientAction_Failure struct {
Failure *Failure `protobuf:"bytes,3,opt,name=failure,proto3,oneof"`
}
type ClientAction_Forward ¶
type ClientAction_Forward struct {
Forward *Forward `protobuf:"bytes,2,opt,name=forward,proto3,oneof"`
}
type ClientAction_Reply ¶
type ClientAction_Reply struct {
Reply *Reply `protobuf:"bytes,1,opt,name=reply,proto3,oneof"`
}
type Command ¶
type Command struct { // The ID of the entity. EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` // A command id. Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Command name Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // The command payload. Payload *any.Any `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // Whether the command is streamed or not Streamed bool `protobuf:"varint,5,opt,name=streamed,proto3" json:"streamed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A command. For each command received, a reply must be sent with a matching command id.
func (*Command) Descriptor ¶
func (*Command) GetEntityId ¶
func (*Command) GetPayload ¶
func (*Command) GetStreamed ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
type CrdtClient ¶
type CrdtClient interface { // After invoking handle, the first message sent will always be a CrdtInit message, containing the entity ID, and, // if it exists or is available, the current state of the entity. After that, one or more commands may be sent, // as well as deltas as they arrive, and the entire state if either the entity is created, or the proxy wishes the // user function to replace its entire state. // // The user function must respond with one reply per command in. They do not necessarily have to be sent in the same // order that the commands were sent, the command ID is used to correlate commands to replies. Handle(ctx context.Context, opts ...grpc.CallOption) (Crdt_HandleClient, error) }
CrdtClient is the client API for Crdt service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCrdtClient ¶
func NewCrdtClient(cc *grpc.ClientConn) CrdtClient
type CrdtClock ¶
type CrdtClock int32
const ( // Use the default clock for deciding the last write, which is the system clocks // milliseconds since epoch. CrdtClock_DEFAULT CrdtClock = 0 // Use the reverse semantics with the default clock, to enable first write wins. CrdtClock_REVERSE CrdtClock = 1 // Use a custom clock value, set using custom_clock_value. CrdtClock_CUSTOM CrdtClock = 2 // Use a custom clock value, but automatically increment it by one if the clock // value from the current value is equal to the custom_clock_value. CrdtClock_CUSTOM_AUTO_INCREMENT CrdtClock = 3 )
func (CrdtClock) EnumDescriptor ¶
type CrdtDelete ¶
type CrdtDelete struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrdtDelete) Descriptor ¶
func (*CrdtDelete) Descriptor() ([]byte, []int)
func (*CrdtDelete) ProtoMessage ¶
func (*CrdtDelete) ProtoMessage()
func (*CrdtDelete) Reset ¶
func (m *CrdtDelete) Reset()
func (*CrdtDelete) String ¶
func (m *CrdtDelete) String() string
func (*CrdtDelete) XXX_DiscardUnknown ¶
func (m *CrdtDelete) XXX_DiscardUnknown()
func (*CrdtDelete) XXX_Marshal ¶
func (m *CrdtDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrdtDelete) XXX_Merge ¶
func (m *CrdtDelete) XXX_Merge(src proto.Message)
func (*CrdtDelete) XXX_Size ¶
func (m *CrdtDelete) XXX_Size() int
func (*CrdtDelete) XXX_Unmarshal ¶
func (m *CrdtDelete) XXX_Unmarshal(b []byte) error
type CrdtDelta ¶
type CrdtDelta struct { // Types that are valid to be assigned to Delta: // *CrdtDelta_Gcounter // *CrdtDelta_Pncounter // *CrdtDelta_Gset // *CrdtDelta_Orset // *CrdtDelta_Lwwregister // *CrdtDelta_Flag // *CrdtDelta_Ormap // *CrdtDelta_Vote Delta isCrdtDelta_Delta `protobuf_oneof:"delta"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A CRDT delta
Deltas only carry the change in value, not the full value (unless
func (*CrdtDelta) Descriptor ¶
func (*CrdtDelta) GetGcounter ¶
func (m *CrdtDelta) GetGcounter() *GCounterDelta
func (*CrdtDelta) GetLwwregister ¶
func (m *CrdtDelta) GetLwwregister() *LWWRegisterDelta
func (*CrdtDelta) GetOrmap ¶
func (m *CrdtDelta) GetOrmap() *ORMapDelta
func (*CrdtDelta) GetOrset ¶
func (m *CrdtDelta) GetOrset() *ORSetDelta
func (*CrdtDelta) GetPncounter ¶
func (m *CrdtDelta) GetPncounter() *PNCounterDelta
func (*CrdtDelta) ProtoMessage ¶
func (*CrdtDelta) ProtoMessage()
func (*CrdtDelta) XXX_DiscardUnknown ¶
func (m *CrdtDelta) XXX_DiscardUnknown()
func (*CrdtDelta) XXX_Marshal ¶
func (*CrdtDelta) XXX_OneofWrappers ¶
func (*CrdtDelta) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CrdtDelta) XXX_Unmarshal ¶
type CrdtDelta_Flag ¶
type CrdtDelta_Flag struct {
Flag *FlagDelta `protobuf:"bytes,6,opt,name=flag,proto3,oneof"`
}
type CrdtDelta_Gcounter ¶
type CrdtDelta_Gcounter struct {
Gcounter *GCounterDelta `protobuf:"bytes,1,opt,name=gcounter,proto3,oneof"`
}
type CrdtDelta_Gset ¶
type CrdtDelta_Gset struct {
Gset *GSetDelta `protobuf:"bytes,3,opt,name=gset,proto3,oneof"`
}
type CrdtDelta_Lwwregister ¶
type CrdtDelta_Lwwregister struct {
Lwwregister *LWWRegisterDelta `protobuf:"bytes,5,opt,name=lwwregister,proto3,oneof"`
}
type CrdtDelta_Ormap ¶
type CrdtDelta_Ormap struct {
Ormap *ORMapDelta `protobuf:"bytes,7,opt,name=ormap,proto3,oneof"`
}
type CrdtDelta_Orset ¶
type CrdtDelta_Orset struct {
Orset *ORSetDelta `protobuf:"bytes,4,opt,name=orset,proto3,oneof"`
}
type CrdtDelta_Pncounter ¶
type CrdtDelta_Pncounter struct {
Pncounter *PNCounterDelta `protobuf:"bytes,2,opt,name=pncounter,proto3,oneof"`
}
type CrdtDelta_Vote ¶
type CrdtDelta_Vote struct {
Vote *VoteDelta `protobuf:"bytes,8,opt,name=vote,proto3,oneof"`
}
type CrdtInit ¶
type CrdtInit struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` EntityId string `protobuf:"bytes,2,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` State *CrdtState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrdtInit) Descriptor ¶
func (*CrdtInit) GetEntityId ¶
func (*CrdtInit) GetServiceName ¶
func (*CrdtInit) ProtoMessage ¶
func (*CrdtInit) ProtoMessage()
func (*CrdtInit) XXX_DiscardUnknown ¶
func (m *CrdtInit) XXX_DiscardUnknown()
func (*CrdtInit) XXX_Marshal ¶
func (*CrdtInit) XXX_Unmarshal ¶
type CrdtReply ¶
type CrdtReply struct { CommandId int64 `protobuf:"varint,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"` ClientAction *ClientAction `protobuf:"bytes,2,opt,name=client_action,json=clientAction,proto3" json:"client_action,omitempty"` SideEffects []*SideEffect `protobuf:"bytes,4,rep,name=side_effects,json=sideEffects,proto3" json:"side_effects,omitempty"` StateAction *CrdtStateAction `protobuf:"bytes,5,opt,name=state_action,json=stateAction,proto3" json:"state_action,omitempty"` // If the request was streamed, setting this to true indicates that the command should // be handled as a stream. Subsequently, the user function may send CrdtStreamedMessage, // and a CrdtStreamCancelled message will be sent if the stream is cancelled (though // not if the a CrdtStreamedMessage ends the stream first). Streamed bool `protobuf:"varint,6,opt,name=streamed,proto3" json:"streamed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrdtReply) Descriptor ¶
func (*CrdtReply) GetClientAction ¶
func (m *CrdtReply) GetClientAction() *ClientAction
func (*CrdtReply) GetCommandId ¶
func (*CrdtReply) GetSideEffects ¶
func (m *CrdtReply) GetSideEffects() []*SideEffect
func (*CrdtReply) GetStateAction ¶
func (m *CrdtReply) GetStateAction() *CrdtStateAction
func (*CrdtReply) GetStreamed ¶
func (*CrdtReply) ProtoMessage ¶
func (*CrdtReply) ProtoMessage()
func (*CrdtReply) XXX_DiscardUnknown ¶
func (m *CrdtReply) XXX_DiscardUnknown()
func (*CrdtReply) XXX_Marshal ¶
func (*CrdtReply) XXX_Unmarshal ¶
type CrdtServer ¶
type CrdtServer interface { // After invoking handle, the first message sent will always be a CrdtInit message, containing the entity ID, and, // if it exists or is available, the current state of the entity. After that, one or more commands may be sent, // as well as deltas as they arrive, and the entire state if either the entity is created, or the proxy wishes the // user function to replace its entire state. // // The user function must respond with one reply per command in. They do not necessarily have to be sent in the same // order that the commands were sent, the command ID is used to correlate commands to replies. Handle(Crdt_HandleServer) error }
CrdtServer is the server API for Crdt service.
type CrdtState ¶
type CrdtState struct { // Types that are valid to be assigned to State: // *CrdtState_Gcounter // *CrdtState_Pncounter // *CrdtState_Gset // *CrdtState_Orset // *CrdtState_Lwwregister // *CrdtState_Flag // *CrdtState_Ormap // *CrdtState_Vote State isCrdtState_State `protobuf_oneof:"state"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The CRDT state. This represents the full state of a CRDT. When received, a user function should replace the current state with this, not apply it as a delta. This includes both for the top level CRDT, and embedded CRDTs, such as the values of an ORMap.
func (*CrdtState) Descriptor ¶
func (*CrdtState) GetGcounter ¶
func (m *CrdtState) GetGcounter() *GCounterState
func (*CrdtState) GetLwwregister ¶
func (m *CrdtState) GetLwwregister() *LWWRegisterState
func (*CrdtState) GetOrmap ¶
func (m *CrdtState) GetOrmap() *ORMapState
func (*CrdtState) GetOrset ¶
func (m *CrdtState) GetOrset() *ORSetState
func (*CrdtState) GetPncounter ¶
func (m *CrdtState) GetPncounter() *PNCounterState
func (*CrdtState) ProtoMessage ¶
func (*CrdtState) ProtoMessage()
func (*CrdtState) XXX_DiscardUnknown ¶
func (m *CrdtState) XXX_DiscardUnknown()
func (*CrdtState) XXX_Marshal ¶
func (*CrdtState) XXX_OneofWrappers ¶
func (*CrdtState) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CrdtState) XXX_Unmarshal ¶
type CrdtStateAction ¶
type CrdtStateAction struct { // Types that are valid to be assigned to Action: // *CrdtStateAction_Create // *CrdtStateAction_Update // *CrdtStateAction_Delete Action isCrdtStateAction_Action `protobuf_oneof:"action"` WriteConsistency CrdtWriteConsistency `` /* 152-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrdtStateAction) Descriptor ¶
func (*CrdtStateAction) Descriptor() ([]byte, []int)
func (*CrdtStateAction) GetAction ¶
func (m *CrdtStateAction) GetAction() isCrdtStateAction_Action
func (*CrdtStateAction) GetCreate ¶
func (m *CrdtStateAction) GetCreate() *CrdtState
func (*CrdtStateAction) GetDelete ¶
func (m *CrdtStateAction) GetDelete() *CrdtDelete
func (*CrdtStateAction) GetUpdate ¶
func (m *CrdtStateAction) GetUpdate() *CrdtDelta
func (*CrdtStateAction) GetWriteConsistency ¶
func (m *CrdtStateAction) GetWriteConsistency() CrdtWriteConsistency
func (*CrdtStateAction) ProtoMessage ¶
func (*CrdtStateAction) ProtoMessage()
func (*CrdtStateAction) Reset ¶
func (m *CrdtStateAction) Reset()
func (*CrdtStateAction) String ¶
func (m *CrdtStateAction) String() string
func (*CrdtStateAction) XXX_DiscardUnknown ¶
func (m *CrdtStateAction) XXX_DiscardUnknown()
func (*CrdtStateAction) XXX_Marshal ¶
func (m *CrdtStateAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrdtStateAction) XXX_Merge ¶
func (m *CrdtStateAction) XXX_Merge(src proto.Message)
func (*CrdtStateAction) XXX_OneofWrappers ¶
func (*CrdtStateAction) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CrdtStateAction) XXX_Size ¶
func (m *CrdtStateAction) XXX_Size() int
func (*CrdtStateAction) XXX_Unmarshal ¶
func (m *CrdtStateAction) XXX_Unmarshal(b []byte) error
type CrdtStateAction_Create ¶
type CrdtStateAction_Create struct {
Create *CrdtState `protobuf:"bytes,5,opt,name=create,proto3,oneof"`
}
type CrdtStateAction_Delete ¶
type CrdtStateAction_Delete struct {
Delete *CrdtDelete `protobuf:"bytes,7,opt,name=delete,proto3,oneof"`
}
type CrdtStateAction_Update ¶
type CrdtStateAction_Update struct {
Update *CrdtDelta `protobuf:"bytes,6,opt,name=update,proto3,oneof"`
}
type CrdtState_Flag ¶
type CrdtState_Flag struct {
Flag *FlagState `protobuf:"bytes,6,opt,name=flag,proto3,oneof"`
}
type CrdtState_Gcounter ¶
type CrdtState_Gcounter struct {
Gcounter *GCounterState `protobuf:"bytes,1,opt,name=gcounter,proto3,oneof"`
}
type CrdtState_Gset ¶
type CrdtState_Gset struct {
Gset *GSetState `protobuf:"bytes,3,opt,name=gset,proto3,oneof"`
}
type CrdtState_Lwwregister ¶
type CrdtState_Lwwregister struct {
Lwwregister *LWWRegisterState `protobuf:"bytes,5,opt,name=lwwregister,proto3,oneof"`
}
type CrdtState_Ormap ¶
type CrdtState_Ormap struct {
Ormap *ORMapState `protobuf:"bytes,7,opt,name=ormap,proto3,oneof"`
}
type CrdtState_Orset ¶
type CrdtState_Orset struct {
Orset *ORSetState `protobuf:"bytes,4,opt,name=orset,proto3,oneof"`
}
type CrdtState_Pncounter ¶
type CrdtState_Pncounter struct {
Pncounter *PNCounterState `protobuf:"bytes,2,opt,name=pncounter,proto3,oneof"`
}
type CrdtState_Vote ¶
type CrdtState_Vote struct {
Vote *VoteState `protobuf:"bytes,8,opt,name=vote,proto3,oneof"`
}
type CrdtStreamCancelledResponse ¶
type CrdtStreamCancelledResponse struct { CommandId int64 `protobuf:"varint,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"` SideEffects []*SideEffect `protobuf:"bytes,2,rep,name=side_effects,json=sideEffects,proto3" json:"side_effects,omitempty"` StateAction *CrdtStateAction `protobuf:"bytes,3,opt,name=state_action,json=stateAction,proto3" json:"state_action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrdtStreamCancelledResponse) Descriptor ¶
func (*CrdtStreamCancelledResponse) Descriptor() ([]byte, []int)
func (*CrdtStreamCancelledResponse) GetCommandId ¶
func (m *CrdtStreamCancelledResponse) GetCommandId() int64
func (*CrdtStreamCancelledResponse) GetSideEffects ¶
func (m *CrdtStreamCancelledResponse) GetSideEffects() []*SideEffect
func (*CrdtStreamCancelledResponse) GetStateAction ¶
func (m *CrdtStreamCancelledResponse) GetStateAction() *CrdtStateAction
func (*CrdtStreamCancelledResponse) ProtoMessage ¶
func (*CrdtStreamCancelledResponse) ProtoMessage()
func (*CrdtStreamCancelledResponse) Reset ¶
func (m *CrdtStreamCancelledResponse) Reset()
func (*CrdtStreamCancelledResponse) String ¶
func (m *CrdtStreamCancelledResponse) String() string
func (*CrdtStreamCancelledResponse) XXX_DiscardUnknown ¶
func (m *CrdtStreamCancelledResponse) XXX_DiscardUnknown()
func (*CrdtStreamCancelledResponse) XXX_Marshal ¶
func (m *CrdtStreamCancelledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrdtStreamCancelledResponse) XXX_Merge ¶
func (m *CrdtStreamCancelledResponse) XXX_Merge(src proto.Message)
func (*CrdtStreamCancelledResponse) XXX_Size ¶
func (m *CrdtStreamCancelledResponse) XXX_Size() int
func (*CrdtStreamCancelledResponse) XXX_Unmarshal ¶
func (m *CrdtStreamCancelledResponse) XXX_Unmarshal(b []byte) error
type CrdtStreamIn ¶
type CrdtStreamIn struct { // Types that are valid to be assigned to Message: // *CrdtStreamIn_Init // *CrdtStreamIn_State // *CrdtStreamIn_Changed // *CrdtStreamIn_Deleted // *CrdtStreamIn_Command // *CrdtStreamIn_StreamCancelled Message isCrdtStreamIn_Message `protobuf_oneof:"message"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message for the Crdt handle stream in.
func (*CrdtStreamIn) Descriptor ¶
func (*CrdtStreamIn) Descriptor() ([]byte, []int)
func (*CrdtStreamIn) GetChanged ¶
func (m *CrdtStreamIn) GetChanged() *CrdtDelta
func (*CrdtStreamIn) GetCommand ¶
func (m *CrdtStreamIn) GetCommand() *Command
func (*CrdtStreamIn) GetDeleted ¶
func (m *CrdtStreamIn) GetDeleted() *CrdtDelete
func (*CrdtStreamIn) GetInit ¶
func (m *CrdtStreamIn) GetInit() *CrdtInit
func (*CrdtStreamIn) GetMessage ¶
func (m *CrdtStreamIn) GetMessage() isCrdtStreamIn_Message
func (*CrdtStreamIn) GetState ¶
func (m *CrdtStreamIn) GetState() *CrdtState
func (*CrdtStreamIn) GetStreamCancelled ¶
func (m *CrdtStreamIn) GetStreamCancelled() *StreamCancelled
func (*CrdtStreamIn) ProtoMessage ¶
func (*CrdtStreamIn) ProtoMessage()
func (*CrdtStreamIn) Reset ¶
func (m *CrdtStreamIn) Reset()
func (*CrdtStreamIn) String ¶
func (m *CrdtStreamIn) String() string
func (*CrdtStreamIn) XXX_DiscardUnknown ¶
func (m *CrdtStreamIn) XXX_DiscardUnknown()
func (*CrdtStreamIn) XXX_Marshal ¶
func (m *CrdtStreamIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrdtStreamIn) XXX_Merge ¶
func (m *CrdtStreamIn) XXX_Merge(src proto.Message)
func (*CrdtStreamIn) XXX_OneofWrappers ¶
func (*CrdtStreamIn) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CrdtStreamIn) XXX_Size ¶
func (m *CrdtStreamIn) XXX_Size() int
func (*CrdtStreamIn) XXX_Unmarshal ¶
func (m *CrdtStreamIn) XXX_Unmarshal(b []byte) error
type CrdtStreamIn_Changed ¶
type CrdtStreamIn_Changed struct {
Changed *CrdtDelta `protobuf:"bytes,3,opt,name=changed,proto3,oneof"`
}
type CrdtStreamIn_Command ¶
type CrdtStreamIn_Command struct {
Command *Command `protobuf:"bytes,5,opt,name=command,proto3,oneof"`
}
type CrdtStreamIn_Deleted ¶
type CrdtStreamIn_Deleted struct {
Deleted *CrdtDelete `protobuf:"bytes,4,opt,name=deleted,proto3,oneof"`
}
type CrdtStreamIn_Init ¶
type CrdtStreamIn_Init struct {
Init *CrdtInit `protobuf:"bytes,1,opt,name=init,proto3,oneof"`
}
type CrdtStreamIn_State ¶
type CrdtStreamIn_State struct {
State *CrdtState `protobuf:"bytes,2,opt,name=state,proto3,oneof"`
}
type CrdtStreamIn_StreamCancelled ¶
type CrdtStreamIn_StreamCancelled struct {
StreamCancelled *StreamCancelled `protobuf:"bytes,6,opt,name=stream_cancelled,json=streamCancelled,proto3,oneof"`
}
type CrdtStreamOut ¶
type CrdtStreamOut struct { // Types that are valid to be assigned to Message: // *CrdtStreamOut_Reply // *CrdtStreamOut_StreamedMessage // *CrdtStreamOut_StreamCancelledResponse // *CrdtStreamOut_Failure Message isCrdtStreamOut_Message `protobuf_oneof:"message"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message for the Crdt handle stream out.
func (*CrdtStreamOut) Descriptor ¶
func (*CrdtStreamOut) Descriptor() ([]byte, []int)
func (*CrdtStreamOut) GetFailure ¶
func (m *CrdtStreamOut) GetFailure() *Failure
func (*CrdtStreamOut) GetMessage ¶
func (m *CrdtStreamOut) GetMessage() isCrdtStreamOut_Message
func (*CrdtStreamOut) GetReply ¶
func (m *CrdtStreamOut) GetReply() *CrdtReply
func (*CrdtStreamOut) GetStreamCancelledResponse ¶
func (m *CrdtStreamOut) GetStreamCancelledResponse() *CrdtStreamCancelledResponse
func (*CrdtStreamOut) GetStreamedMessage ¶
func (m *CrdtStreamOut) GetStreamedMessage() *CrdtStreamedMessage
func (*CrdtStreamOut) ProtoMessage ¶
func (*CrdtStreamOut) ProtoMessage()
func (*CrdtStreamOut) Reset ¶
func (m *CrdtStreamOut) Reset()
func (*CrdtStreamOut) String ¶
func (m *CrdtStreamOut) String() string
func (*CrdtStreamOut) XXX_DiscardUnknown ¶
func (m *CrdtStreamOut) XXX_DiscardUnknown()
func (*CrdtStreamOut) XXX_Marshal ¶
func (m *CrdtStreamOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrdtStreamOut) XXX_Merge ¶
func (m *CrdtStreamOut) XXX_Merge(src proto.Message)
func (*CrdtStreamOut) XXX_OneofWrappers ¶
func (*CrdtStreamOut) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CrdtStreamOut) XXX_Size ¶
func (m *CrdtStreamOut) XXX_Size() int
func (*CrdtStreamOut) XXX_Unmarshal ¶
func (m *CrdtStreamOut) XXX_Unmarshal(b []byte) error
type CrdtStreamOut_Failure ¶
type CrdtStreamOut_Failure struct {
Failure *Failure `protobuf:"bytes,4,opt,name=failure,proto3,oneof"`
}
type CrdtStreamOut_Reply ¶
type CrdtStreamOut_Reply struct {
Reply *CrdtReply `protobuf:"bytes,1,opt,name=reply,proto3,oneof"`
}
type CrdtStreamOut_StreamCancelledResponse ¶
type CrdtStreamOut_StreamCancelledResponse struct {
StreamCancelledResponse *CrdtStreamCancelledResponse `protobuf:"bytes,3,opt,name=stream_cancelled_response,json=streamCancelledResponse,proto3,oneof"`
}
type CrdtStreamOut_StreamedMessage ¶
type CrdtStreamOut_StreamedMessage struct {
StreamedMessage *CrdtStreamedMessage `protobuf:"bytes,2,opt,name=streamed_message,json=streamedMessage,proto3,oneof"`
}
type CrdtStreamedMessage ¶
type CrdtStreamedMessage struct { CommandId int64 `protobuf:"varint,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"` ClientAction *ClientAction `protobuf:"bytes,2,opt,name=client_action,json=clientAction,proto3" json:"client_action,omitempty"` SideEffects []*SideEffect `protobuf:"bytes,3,rep,name=side_effects,json=sideEffects,proto3" json:"side_effects,omitempty"` // Indicates the stream should end, no messages may be sent for this command after this. EndStream bool `protobuf:"varint,4,opt,name=end_stream,json=endStream,proto3" json:"end_stream,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
May be sent as often as liked if the first reply set streamed to true
func (*CrdtStreamedMessage) Descriptor ¶
func (*CrdtStreamedMessage) Descriptor() ([]byte, []int)
func (*CrdtStreamedMessage) GetClientAction ¶
func (m *CrdtStreamedMessage) GetClientAction() *ClientAction
func (*CrdtStreamedMessage) GetCommandId ¶
func (m *CrdtStreamedMessage) GetCommandId() int64
func (*CrdtStreamedMessage) GetEndStream ¶
func (m *CrdtStreamedMessage) GetEndStream() bool
func (*CrdtStreamedMessage) GetSideEffects ¶
func (m *CrdtStreamedMessage) GetSideEffects() []*SideEffect
func (*CrdtStreamedMessage) ProtoMessage ¶
func (*CrdtStreamedMessage) ProtoMessage()
func (*CrdtStreamedMessage) Reset ¶
func (m *CrdtStreamedMessage) Reset()
func (*CrdtStreamedMessage) String ¶
func (m *CrdtStreamedMessage) String() string
func (*CrdtStreamedMessage) XXX_DiscardUnknown ¶
func (m *CrdtStreamedMessage) XXX_DiscardUnknown()
func (*CrdtStreamedMessage) XXX_Marshal ¶
func (m *CrdtStreamedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrdtStreamedMessage) XXX_Merge ¶
func (m *CrdtStreamedMessage) XXX_Merge(src proto.Message)
func (*CrdtStreamedMessage) XXX_Size ¶
func (m *CrdtStreamedMessage) XXX_Size() int
func (*CrdtStreamedMessage) XXX_Unmarshal ¶
func (m *CrdtStreamedMessage) XXX_Unmarshal(b []byte) error
type CrdtWriteConsistency ¶
type CrdtWriteConsistency int32
const ( CrdtWriteConsistency_LOCAL CrdtWriteConsistency = 0 CrdtWriteConsistency_MAJORITY CrdtWriteConsistency = 1 CrdtWriteConsistency_ALL CrdtWriteConsistency = 2 )
func (CrdtWriteConsistency) EnumDescriptor ¶
func (CrdtWriteConsistency) EnumDescriptor() ([]byte, []int)
func (CrdtWriteConsistency) String ¶
func (x CrdtWriteConsistency) String() string
type Crdt_HandleClient ¶
type Crdt_HandleClient interface { Send(*CrdtStreamIn) error Recv() (*CrdtStreamOut, error) grpc.ClientStream }
type Crdt_HandleServer ¶
type Crdt_HandleServer interface { Send(*CrdtStreamOut) error Recv() (*CrdtStreamIn, error) grpc.ServerStream }
type Entity ¶
type Entity struct { // The type of entity. By convention, this should be a fully qualified entity protocol grpc // service name, for example, cloudstate.eventsourced.EventSourced. EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // The name of the service to load from the protobuf file. ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The ID to namespace state by. How this is used depends on the type of entity, for example, // event sourced entities will prefix this to the persistence id. PersistenceId string `protobuf:"bytes,3,opt,name=persistence_id,json=persistenceId,proto3" json:"persistence_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Entity) Descriptor ¶
func (*Entity) GetEntityType ¶
func (*Entity) GetPersistenceId ¶
func (*Entity) GetServiceName ¶
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) XXX_DiscardUnknown ¶
func (m *Entity) XXX_DiscardUnknown()
func (*Entity) XXX_Marshal ¶
func (*Entity) XXX_Unmarshal ¶
type EntityDiscoveryClient ¶
type EntityDiscoveryClient interface { // Discover what entities the user function wishes to serve. Discover(ctx context.Context, in *ProxyInfo, opts ...grpc.CallOption) (*EntitySpec, error) // Report an error back to the user function. This will only be invoked to tell the user function // that it has done something wrong, eg, violated the protocol, tried to use an entity type that // isn't supported, or attempted to forward to an entity that doesn't exist, etc. These messages // should be logged clearly for debugging purposes. ReportError(ctx context.Context, in *UserFunctionError, opts ...grpc.CallOption) (*empty.Empty, error) }
EntityDiscoveryClient is the client API for EntityDiscovery service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEntityDiscoveryClient ¶
func NewEntityDiscoveryClient(cc *grpc.ClientConn) EntityDiscoveryClient
type EntityDiscoveryServer ¶
type EntityDiscoveryServer interface { // Discover what entities the user function wishes to serve. Discover(context.Context, *ProxyInfo) (*EntitySpec, error) // Report an error back to the user function. This will only be invoked to tell the user function // that it has done something wrong, eg, violated the protocol, tried to use an entity type that // isn't supported, or attempted to forward to an entity that doesn't exist, etc. These messages // should be logged clearly for debugging purposes. ReportError(context.Context, *UserFunctionError) (*empty.Empty, error) }
EntityDiscoveryServer is the server API for EntityDiscovery service.
type EntitySpec ¶
type EntitySpec struct { // This should be the Descriptors.FileDescriptorSet in proto serialized from as generated by: // protoc --include_imports \ // --proto_path=<proto file directory> \ // --descriptor_set_out=user-function.desc \ // <path to .proto files> Proto []byte `protobuf:"bytes,1,opt,name=proto,proto3" json:"proto,omitempty"` // The entities being served. Entities []*Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` // Optional information about the service. ServiceInfo *ServiceInfo `protobuf:"bytes,3,opt,name=service_info,json=serviceInfo,proto3" json:"service_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EntitySpec) Descriptor ¶
func (*EntitySpec) Descriptor() ([]byte, []int)
func (*EntitySpec) GetEntities ¶
func (m *EntitySpec) GetEntities() []*Entity
func (*EntitySpec) GetProto ¶
func (m *EntitySpec) GetProto() []byte
func (*EntitySpec) GetServiceInfo ¶
func (m *EntitySpec) GetServiceInfo() *ServiceInfo
func (*EntitySpec) ProtoMessage ¶
func (*EntitySpec) ProtoMessage()
func (*EntitySpec) Reset ¶
func (m *EntitySpec) Reset()
func (*EntitySpec) String ¶
func (m *EntitySpec) String() string
func (*EntitySpec) XXX_DiscardUnknown ¶
func (m *EntitySpec) XXX_DiscardUnknown()
func (*EntitySpec) XXX_Marshal ¶
func (m *EntitySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EntitySpec) XXX_Merge ¶
func (m *EntitySpec) XXX_Merge(src proto.Message)
func (*EntitySpec) XXX_Size ¶
func (m *EntitySpec) XXX_Size() int
func (*EntitySpec) XXX_Unmarshal ¶
func (m *EntitySpec) XXX_Unmarshal(b []byte) error
type Failure ¶
type Failure struct { // The id of the command being replied to. Must match the input command. CommandId int64 `protobuf:"varint,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"` // A description of the error. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A failure reply. If this is returned, it will be translated into a gRPC unknown error with the corresponding description if supplied.
func (*Failure) Descriptor ¶
func (*Failure) GetCommandId ¶
func (*Failure) GetDescription ¶
func (*Failure) ProtoMessage ¶
func (*Failure) ProtoMessage()
func (*Failure) XXX_DiscardUnknown ¶
func (m *Failure) XXX_DiscardUnknown()
func (*Failure) XXX_Marshal ¶
func (*Failure) XXX_Unmarshal ¶
type FlagDelta ¶
type FlagDelta struct { Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FlagDelta) Descriptor ¶
func (*FlagDelta) ProtoMessage ¶
func (*FlagDelta) ProtoMessage()
func (*FlagDelta) XXX_DiscardUnknown ¶
func (m *FlagDelta) XXX_DiscardUnknown()
func (*FlagDelta) XXX_Marshal ¶
func (*FlagDelta) XXX_Unmarshal ¶
type FlagState ¶
type FlagState struct { // The current value of the flag. Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Flag
A Flag is a boolean value, that once set to true, stays true.
func (*FlagState) Descriptor ¶
func (*FlagState) ProtoMessage ¶
func (*FlagState) ProtoMessage()
func (*FlagState) XXX_DiscardUnknown ¶
func (m *FlagState) XXX_DiscardUnknown()
func (*FlagState) XXX_Marshal ¶
func (*FlagState) XXX_Unmarshal ¶
type Forward ¶
type Forward struct { // The name of the service to forward to. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The name of the command. CommandName string `protobuf:"bytes,2,opt,name=command_name,json=commandName,proto3" json:"command_name,omitempty"` // The payload. Payload *any.Any `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Forwards handling of this request to another entity.
func (*Forward) Descriptor ¶
func (*Forward) GetCommandName ¶
func (*Forward) GetPayload ¶
func (*Forward) GetServiceName ¶
func (*Forward) ProtoMessage ¶
func (*Forward) ProtoMessage()
func (*Forward) XXX_DiscardUnknown ¶
func (m *Forward) XXX_DiscardUnknown()
func (*Forward) XXX_Marshal ¶
func (*Forward) XXX_Unmarshal ¶
type GCounterDelta ¶
type GCounterDelta struct { Increment uint64 `protobuf:"varint,1,opt,name=increment,proto3" json:"increment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GCounterDelta) Descriptor ¶
func (*GCounterDelta) Descriptor() ([]byte, []int)
func (*GCounterDelta) GetIncrement ¶
func (m *GCounterDelta) GetIncrement() uint64
func (*GCounterDelta) ProtoMessage ¶
func (*GCounterDelta) ProtoMessage()
func (*GCounterDelta) Reset ¶
func (m *GCounterDelta) Reset()
func (*GCounterDelta) String ¶
func (m *GCounterDelta) String() string
func (*GCounterDelta) XXX_DiscardUnknown ¶
func (m *GCounterDelta) XXX_DiscardUnknown()
func (*GCounterDelta) XXX_Marshal ¶
func (m *GCounterDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GCounterDelta) XXX_Merge ¶
func (m *GCounterDelta) XXX_Merge(src proto.Message)
func (*GCounterDelta) XXX_Size ¶
func (m *GCounterDelta) XXX_Size() int
func (*GCounterDelta) XXX_Unmarshal ¶
func (m *GCounterDelta) XXX_Unmarshal(b []byte) error
type GCounterState ¶
type GCounterState struct { // The current value of the counter. Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Grow-only counter
A G-Counter can only be incremented, it can't be decremented.
func (*GCounterState) Descriptor ¶
func (*GCounterState) Descriptor() ([]byte, []int)
func (*GCounterState) GetValue ¶
func (m *GCounterState) GetValue() uint64
func (*GCounterState) ProtoMessage ¶
func (*GCounterState) ProtoMessage()
func (*GCounterState) Reset ¶
func (m *GCounterState) Reset()
func (*GCounterState) String ¶
func (m *GCounterState) String() string
func (*GCounterState) XXX_DiscardUnknown ¶
func (m *GCounterState) XXX_DiscardUnknown()
func (*GCounterState) XXX_Marshal ¶
func (m *GCounterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GCounterState) XXX_Merge ¶
func (m *GCounterState) XXX_Merge(src proto.Message)
func (*GCounterState) XXX_Size ¶
func (m *GCounterState) XXX_Size() int
func (*GCounterState) XXX_Unmarshal ¶
func (m *GCounterState) XXX_Unmarshal(b []byte) error
type GSetDelta ¶
type GSetDelta struct { Added []*any.Any `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GSetDelta) Descriptor ¶
func (*GSetDelta) ProtoMessage ¶
func (*GSetDelta) ProtoMessage()
func (*GSetDelta) XXX_DiscardUnknown ¶
func (m *GSetDelta) XXX_DiscardUnknown()
func (*GSetDelta) XXX_Marshal ¶
func (*GSetDelta) XXX_Unmarshal ¶
type GSetState ¶
type GSetState struct { // The current items in the set. Items []*any.Any `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Grow-only Set
A G-Set can only have items added, items cannot be removed.
func (*GSetState) Descriptor ¶
func (*GSetState) ProtoMessage ¶
func (*GSetState) ProtoMessage()
func (*GSetState) XXX_DiscardUnknown ¶
func (m *GSetState) XXX_DiscardUnknown()
func (*GSetState) XXX_Marshal ¶
func (*GSetState) XXX_Unmarshal ¶
type LWWRegisterDelta ¶
type LWWRegisterDelta struct { Value *any.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Clock CrdtClock `protobuf:"varint,2,opt,name=clock,proto3,enum=cloudstate.crdt.CrdtClock" json:"clock,omitempty"` CustomClockValue int64 `protobuf:"varint,3,opt,name=custom_clock_value,json=customClockValue,proto3" json:"custom_clock_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LWWRegisterDelta) Descriptor ¶
func (*LWWRegisterDelta) Descriptor() ([]byte, []int)
func (*LWWRegisterDelta) GetClock ¶
func (m *LWWRegisterDelta) GetClock() CrdtClock
func (*LWWRegisterDelta) GetCustomClockValue ¶
func (m *LWWRegisterDelta) GetCustomClockValue() int64
func (*LWWRegisterDelta) GetValue ¶
func (m *LWWRegisterDelta) GetValue() *any.Any
func (*LWWRegisterDelta) ProtoMessage ¶
func (*LWWRegisterDelta) ProtoMessage()
func (*LWWRegisterDelta) Reset ¶
func (m *LWWRegisterDelta) Reset()
func (*LWWRegisterDelta) String ¶
func (m *LWWRegisterDelta) String() string
func (*LWWRegisterDelta) XXX_DiscardUnknown ¶
func (m *LWWRegisterDelta) XXX_DiscardUnknown()
func (*LWWRegisterDelta) XXX_Marshal ¶
func (m *LWWRegisterDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LWWRegisterDelta) XXX_Merge ¶
func (m *LWWRegisterDelta) XXX_Merge(src proto.Message)
func (*LWWRegisterDelta) XXX_Size ¶
func (m *LWWRegisterDelta) XXX_Size() int
func (*LWWRegisterDelta) XXX_Unmarshal ¶
func (m *LWWRegisterDelta) XXX_Unmarshal(b []byte) error
type LWWRegisterState ¶
type LWWRegisterState struct { // The current value of the register. Value *any.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // The clock to use if this state needs to be merged with another one. Clock CrdtClock `protobuf:"varint,2,opt,name=clock,proto3,enum=cloudstate.crdt.CrdtClock" json:"clock,omitempty"` // The clock value if the clock in use is a custom clock. CustomClockValue int64 `protobuf:"varint,3,opt,name=custom_clock_value,json=customClockValue,proto3" json:"custom_clock_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Last-Write-Wins Register
A LWW-Register holds a single value, with the current value being selected based on when it was last written. The time of the last write may either be determined using the proxies clock, or may be based on a custom, domain specific value.
func (*LWWRegisterState) Descriptor ¶
func (*LWWRegisterState) Descriptor() ([]byte, []int)
func (*LWWRegisterState) GetClock ¶
func (m *LWWRegisterState) GetClock() CrdtClock
func (*LWWRegisterState) GetCustomClockValue ¶
func (m *LWWRegisterState) GetCustomClockValue() int64
func (*LWWRegisterState) GetValue ¶
func (m *LWWRegisterState) GetValue() *any.Any
func (*LWWRegisterState) ProtoMessage ¶
func (*LWWRegisterState) ProtoMessage()
func (*LWWRegisterState) Reset ¶
func (m *LWWRegisterState) Reset()
func (*LWWRegisterState) String ¶
func (m *LWWRegisterState) String() string
func (*LWWRegisterState) XXX_DiscardUnknown ¶
func (m *LWWRegisterState) XXX_DiscardUnknown()
func (*LWWRegisterState) XXX_Marshal ¶
func (m *LWWRegisterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LWWRegisterState) XXX_Merge ¶
func (m *LWWRegisterState) XXX_Merge(src proto.Message)
func (*LWWRegisterState) XXX_Size ¶
func (m *LWWRegisterState) XXX_Size() int
func (*LWWRegisterState) XXX_Unmarshal ¶
func (m *LWWRegisterState) XXX_Unmarshal(b []byte) error
type ORMapDelta ¶
type ORMapDelta struct { Cleared bool `protobuf:"varint,1,opt,name=cleared,proto3" json:"cleared,omitempty"` Removed []*any.Any `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` Updated []*ORMapEntryDelta `protobuf:"bytes,3,rep,name=updated,proto3" json:"updated,omitempty"` Added []*ORMapEntry `protobuf:"bytes,4,rep,name=added,proto3" json:"added,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ORMapDelta) Descriptor ¶
func (*ORMapDelta) Descriptor() ([]byte, []int)
func (*ORMapDelta) GetAdded ¶
func (m *ORMapDelta) GetAdded() []*ORMapEntry
func (*ORMapDelta) GetCleared ¶
func (m *ORMapDelta) GetCleared() bool
func (*ORMapDelta) GetRemoved ¶
func (m *ORMapDelta) GetRemoved() []*any.Any
func (*ORMapDelta) GetUpdated ¶
func (m *ORMapDelta) GetUpdated() []*ORMapEntryDelta
func (*ORMapDelta) ProtoMessage ¶
func (*ORMapDelta) ProtoMessage()
func (*ORMapDelta) Reset ¶
func (m *ORMapDelta) Reset()
func (*ORMapDelta) String ¶
func (m *ORMapDelta) String() string
func (*ORMapDelta) XXX_DiscardUnknown ¶
func (m *ORMapDelta) XXX_DiscardUnknown()
func (*ORMapDelta) XXX_Marshal ¶
func (m *ORMapDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ORMapDelta) XXX_Merge ¶
func (m *ORMapDelta) XXX_Merge(src proto.Message)
func (*ORMapDelta) XXX_Size ¶
func (m *ORMapDelta) XXX_Size() int
func (*ORMapDelta) XXX_Unmarshal ¶
func (m *ORMapDelta) XXX_Unmarshal(b []byte) error
type ORMapEntry ¶
type ORMapEntry struct { // The entry key. Key *any.Any `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The value of the entry, a CRDT itself. Value *CrdtState `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An OR-Map entry.
func (*ORMapEntry) Descriptor ¶
func (*ORMapEntry) Descriptor() ([]byte, []int)
func (*ORMapEntry) GetKey ¶
func (m *ORMapEntry) GetKey() *any.Any
func (*ORMapEntry) GetValue ¶
func (m *ORMapEntry) GetValue() *CrdtState
func (*ORMapEntry) ProtoMessage ¶
func (*ORMapEntry) ProtoMessage()
func (*ORMapEntry) Reset ¶
func (m *ORMapEntry) Reset()
func (*ORMapEntry) String ¶
func (m *ORMapEntry) String() string
func (*ORMapEntry) XXX_DiscardUnknown ¶
func (m *ORMapEntry) XXX_DiscardUnknown()
func (*ORMapEntry) XXX_Marshal ¶
func (m *ORMapEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ORMapEntry) XXX_Merge ¶
func (m *ORMapEntry) XXX_Merge(src proto.Message)
func (*ORMapEntry) XXX_Size ¶
func (m *ORMapEntry) XXX_Size() int
func (*ORMapEntry) XXX_Unmarshal ¶
func (m *ORMapEntry) XXX_Unmarshal(b []byte) error
type ORMapEntryDelta ¶
type ORMapEntryDelta struct { // The entry key. Key *any.Any `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Delta *CrdtDelta `protobuf:"bytes,2,opt,name=delta,proto3" json:"delta,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ORMapEntryDelta) Descriptor ¶
func (*ORMapEntryDelta) Descriptor() ([]byte, []int)
func (*ORMapEntryDelta) GetDelta ¶
func (m *ORMapEntryDelta) GetDelta() *CrdtDelta
func (*ORMapEntryDelta) GetKey ¶
func (m *ORMapEntryDelta) GetKey() *any.Any
func (*ORMapEntryDelta) ProtoMessage ¶
func (*ORMapEntryDelta) ProtoMessage()
func (*ORMapEntryDelta) Reset ¶
func (m *ORMapEntryDelta) Reset()
func (*ORMapEntryDelta) String ¶
func (m *ORMapEntryDelta) String() string
func (*ORMapEntryDelta) XXX_DiscardUnknown ¶
func (m *ORMapEntryDelta) XXX_DiscardUnknown()
func (*ORMapEntryDelta) XXX_Marshal ¶
func (m *ORMapEntryDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ORMapEntryDelta) XXX_Merge ¶
func (m *ORMapEntryDelta) XXX_Merge(src proto.Message)
func (*ORMapEntryDelta) XXX_Size ¶
func (m *ORMapEntryDelta) XXX_Size() int
func (*ORMapEntryDelta) XXX_Unmarshal ¶
func (m *ORMapEntryDelta) XXX_Unmarshal(b []byte) error
type ORMapState ¶
type ORMapState struct { // The entries of the map. Entries []*ORMapEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An Observed-Removed Map
Like an OR-Set, an OR-Map may have items added and removed, with the condition that an item must be observed to be in the map before it is removed. The values of the map are CRDTs themselves. Different keys are allowed to use different CRDTs, and if an item is removed, and then replaced, the new value may be a different CRDT.
func (*ORMapState) Descriptor ¶
func (*ORMapState) Descriptor() ([]byte, []int)
func (*ORMapState) GetEntries ¶
func (m *ORMapState) GetEntries() []*ORMapEntry
func (*ORMapState) ProtoMessage ¶
func (*ORMapState) ProtoMessage()
func (*ORMapState) Reset ¶
func (m *ORMapState) Reset()
func (*ORMapState) String ¶
func (m *ORMapState) String() string
func (*ORMapState) XXX_DiscardUnknown ¶
func (m *ORMapState) XXX_DiscardUnknown()
func (*ORMapState) XXX_Marshal ¶
func (m *ORMapState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ORMapState) XXX_Merge ¶
func (m *ORMapState) XXX_Merge(src proto.Message)
func (*ORMapState) XXX_Size ¶
func (m *ORMapState) XXX_Size() int
func (*ORMapState) XXX_Unmarshal ¶
func (m *ORMapState) XXX_Unmarshal(b []byte) error
type ORSetDelta ¶
type ORSetDelta struct { // If cleared is set, the set must be cleared before added is processed. Cleared bool `protobuf:"varint,1,opt,name=cleared,proto3" json:"cleared,omitempty"` Removed []*any.Any `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` Added []*any.Any `protobuf:"bytes,3,rep,name=added,proto3" json:"added,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ORSetDelta) Descriptor ¶
func (*ORSetDelta) Descriptor() ([]byte, []int)
func (*ORSetDelta) GetAdded ¶
func (m *ORSetDelta) GetAdded() []*any.Any
func (*ORSetDelta) GetCleared ¶
func (m *ORSetDelta) GetCleared() bool
func (*ORSetDelta) GetRemoved ¶
func (m *ORSetDelta) GetRemoved() []*any.Any
func (*ORSetDelta) ProtoMessage ¶
func (*ORSetDelta) ProtoMessage()
func (*ORSetDelta) Reset ¶
func (m *ORSetDelta) Reset()
func (*ORSetDelta) String ¶
func (m *ORSetDelta) String() string
func (*ORSetDelta) XXX_DiscardUnknown ¶
func (m *ORSetDelta) XXX_DiscardUnknown()
func (*ORSetDelta) XXX_Marshal ¶
func (m *ORSetDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ORSetDelta) XXX_Merge ¶
func (m *ORSetDelta) XXX_Merge(src proto.Message)
func (*ORSetDelta) XXX_Size ¶
func (m *ORSetDelta) XXX_Size() int
func (*ORSetDelta) XXX_Unmarshal ¶
func (m *ORSetDelta) XXX_Unmarshal(b []byte) error
type ORSetState ¶
type ORSetState struct { // The current items in the set. Items []*any.Any `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An Observed-Removed Set
An OR-Set may have items added and removed, with the condition that an item must be observed to be in the set before it is removed.
func (*ORSetState) Descriptor ¶
func (*ORSetState) Descriptor() ([]byte, []int)
func (*ORSetState) GetItems ¶
func (m *ORSetState) GetItems() []*any.Any
func (*ORSetState) ProtoMessage ¶
func (*ORSetState) ProtoMessage()
func (*ORSetState) Reset ¶
func (m *ORSetState) Reset()
func (*ORSetState) String ¶
func (m *ORSetState) String() string
func (*ORSetState) XXX_DiscardUnknown ¶
func (m *ORSetState) XXX_DiscardUnknown()
func (*ORSetState) XXX_Marshal ¶
func (m *ORSetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ORSetState) XXX_Merge ¶
func (m *ORSetState) XXX_Merge(src proto.Message)
func (*ORSetState) XXX_Size ¶
func (m *ORSetState) XXX_Size() int
func (*ORSetState) XXX_Unmarshal ¶
func (m *ORSetState) XXX_Unmarshal(b []byte) error
type PNCounterDelta ¶
type PNCounterDelta struct { Change int64 `protobuf:"zigzag64,1,opt,name=change,proto3" json:"change,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PNCounterDelta) Descriptor ¶
func (*PNCounterDelta) Descriptor() ([]byte, []int)
func (*PNCounterDelta) GetChange ¶
func (m *PNCounterDelta) GetChange() int64
func (*PNCounterDelta) ProtoMessage ¶
func (*PNCounterDelta) ProtoMessage()
func (*PNCounterDelta) Reset ¶
func (m *PNCounterDelta) Reset()
func (*PNCounterDelta) String ¶
func (m *PNCounterDelta) String() string
func (*PNCounterDelta) XXX_DiscardUnknown ¶
func (m *PNCounterDelta) XXX_DiscardUnknown()
func (*PNCounterDelta) XXX_Marshal ¶
func (m *PNCounterDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PNCounterDelta) XXX_Merge ¶
func (m *PNCounterDelta) XXX_Merge(src proto.Message)
func (*PNCounterDelta) XXX_Size ¶
func (m *PNCounterDelta) XXX_Size() int
func (*PNCounterDelta) XXX_Unmarshal ¶
func (m *PNCounterDelta) XXX_Unmarshal(b []byte) error
type PNCounterState ¶
type PNCounterState struct { // The current value of the counter. Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Positive-Negative Counter
A PN-Counter can be both incremented and decremented.
func (*PNCounterState) Descriptor ¶
func (*PNCounterState) Descriptor() ([]byte, []int)
func (*PNCounterState) GetValue ¶
func (m *PNCounterState) GetValue() int64
func (*PNCounterState) ProtoMessage ¶
func (*PNCounterState) ProtoMessage()
func (*PNCounterState) Reset ¶
func (m *PNCounterState) Reset()
func (*PNCounterState) String ¶
func (m *PNCounterState) String() string
func (*PNCounterState) XXX_DiscardUnknown ¶
func (m *PNCounterState) XXX_DiscardUnknown()
func (*PNCounterState) XXX_Marshal ¶
func (m *PNCounterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PNCounterState) XXX_Merge ¶
func (m *PNCounterState) XXX_Merge(src proto.Message)
func (*PNCounterState) XXX_Size ¶
func (m *PNCounterState) XXX_Size() int
func (*PNCounterState) XXX_Unmarshal ¶
func (m *PNCounterState) XXX_Unmarshal(b []byte) error
type ProxyInfo ¶
type ProxyInfo struct { ProtocolMajorVersion int32 `protobuf:"varint,1,opt,name=protocol_major_version,json=protocolMajorVersion,proto3" json:"protocol_major_version,omitempty"` ProtocolMinorVersion int32 `protobuf:"varint,2,opt,name=protocol_minor_version,json=protocolMinorVersion,proto3" json:"protocol_minor_version,omitempty"` ProxyName string `protobuf:"bytes,3,opt,name=proxy_name,json=proxyName,proto3" json:"proxy_name,omitempty"` ProxyVersion string `protobuf:"bytes,4,opt,name=proxy_version,json=proxyVersion,proto3" json:"proxy_version,omitempty"` SupportedEntityTypes []string `protobuf:"bytes,5,rep,name=supported_entity_types,json=supportedEntityTypes,proto3" json:"supported_entity_types,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProxyInfo) Descriptor ¶
func (*ProxyInfo) GetProtocolMajorVersion ¶
func (*ProxyInfo) GetProtocolMinorVersion ¶
func (*ProxyInfo) GetProxyName ¶
func (*ProxyInfo) GetProxyVersion ¶
func (*ProxyInfo) GetSupportedEntityTypes ¶
func (*ProxyInfo) ProtoMessage ¶
func (*ProxyInfo) ProtoMessage()
func (*ProxyInfo) XXX_DiscardUnknown ¶
func (m *ProxyInfo) XXX_DiscardUnknown()
func (*ProxyInfo) XXX_Marshal ¶
func (*ProxyInfo) XXX_Unmarshal ¶
type Reply ¶
type Reply struct { // The reply payload Payload *any.Any `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A reply to the sender.
func (*Reply) Descriptor ¶
func (*Reply) GetPayload ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) XXX_DiscardUnknown ¶
func (m *Reply) XXX_DiscardUnknown()
func (*Reply) XXX_Marshal ¶
func (*Reply) XXX_Unmarshal ¶
type ServiceInfo ¶
type ServiceInfo struct { // The name of the service, eg, "shopping-cart". ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The version of the service. ServiceVersion string `protobuf:"bytes,2,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"` // A description of the runtime for the service. Can be anything, but examples might be: // - node v10.15.2 // - OpenJDK Runtime Environment 1.8.0_192-b12 ServiceRuntime string `protobuf:"bytes,3,opt,name=service_runtime,json=serviceRuntime,proto3" json:"service_runtime,omitempty"` // If using a support library, the name of that library, eg "cloudstate" SupportLibraryName string `protobuf:"bytes,4,opt,name=support_library_name,json=supportLibraryName,proto3" json:"support_library_name,omitempty"` // The version of the support library being used. SupportLibraryVersion string `` /* 126-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Information about the service that proxy is proxying to. All of the information in here is optional. It may be useful for debug purposes.
func (*ServiceInfo) Descriptor ¶
func (*ServiceInfo) Descriptor() ([]byte, []int)
func (*ServiceInfo) GetServiceName ¶
func (m *ServiceInfo) GetServiceName() string
func (*ServiceInfo) GetServiceRuntime ¶
func (m *ServiceInfo) GetServiceRuntime() string
func (*ServiceInfo) GetServiceVersion ¶
func (m *ServiceInfo) GetServiceVersion() string
func (*ServiceInfo) GetSupportLibraryName ¶
func (m *ServiceInfo) GetSupportLibraryName() string
func (*ServiceInfo) GetSupportLibraryVersion ¶
func (m *ServiceInfo) GetSupportLibraryVersion() string
func (*ServiceInfo) ProtoMessage ¶
func (*ServiceInfo) ProtoMessage()
func (*ServiceInfo) Reset ¶
func (m *ServiceInfo) Reset()
func (*ServiceInfo) String ¶
func (m *ServiceInfo) String() string
func (*ServiceInfo) XXX_DiscardUnknown ¶
func (m *ServiceInfo) XXX_DiscardUnknown()
func (*ServiceInfo) XXX_Marshal ¶
func (m *ServiceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServiceInfo) XXX_Merge ¶
func (m *ServiceInfo) XXX_Merge(src proto.Message)
func (*ServiceInfo) XXX_Size ¶
func (m *ServiceInfo) XXX_Size() int
func (*ServiceInfo) XXX_Unmarshal ¶
func (m *ServiceInfo) XXX_Unmarshal(b []byte) error
type SideEffect ¶
type SideEffect struct { // The name of the service to perform the side effect on. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The name of the command. CommandName string `protobuf:"bytes,2,opt,name=command_name,json=commandName,proto3" json:"command_name,omitempty"` // The payload of the command. Payload *any.Any `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // Whether this side effect should be performed synchronously, ie, before the reply is eventually // sent, or not. Synchronous bool `protobuf:"varint,4,opt,name=synchronous,proto3" json:"synchronous,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A side effect to be done after this command is handled.
func (*SideEffect) Descriptor ¶
func (*SideEffect) Descriptor() ([]byte, []int)
func (*SideEffect) GetCommandName ¶
func (m *SideEffect) GetCommandName() string
func (*SideEffect) GetPayload ¶
func (m *SideEffect) GetPayload() *any.Any
func (*SideEffect) GetServiceName ¶
func (m *SideEffect) GetServiceName() string
func (*SideEffect) GetSynchronous ¶
func (m *SideEffect) GetSynchronous() bool
func (*SideEffect) ProtoMessage ¶
func (*SideEffect) ProtoMessage()
func (*SideEffect) Reset ¶
func (m *SideEffect) Reset()
func (*SideEffect) String ¶
func (m *SideEffect) String() string
func (*SideEffect) XXX_DiscardUnknown ¶
func (m *SideEffect) XXX_DiscardUnknown()
func (*SideEffect) XXX_Marshal ¶
func (m *SideEffect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SideEffect) XXX_Merge ¶
func (m *SideEffect) XXX_Merge(src proto.Message)
func (*SideEffect) XXX_Size ¶
func (m *SideEffect) XXX_Size() int
func (*SideEffect) XXX_Unmarshal ¶
func (m *SideEffect) XXX_Unmarshal(b []byte) error
type StreamCancelled ¶
type StreamCancelled struct { // The ID of the entity EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` // The command id Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamCancelled) Descriptor ¶
func (*StreamCancelled) Descriptor() ([]byte, []int)
func (*StreamCancelled) GetEntityId ¶
func (m *StreamCancelled) GetEntityId() string
func (*StreamCancelled) GetId ¶
func (m *StreamCancelled) GetId() int64
func (*StreamCancelled) ProtoMessage ¶
func (*StreamCancelled) ProtoMessage()
func (*StreamCancelled) Reset ¶
func (m *StreamCancelled) Reset()
func (*StreamCancelled) String ¶
func (m *StreamCancelled) String() string
func (*StreamCancelled) XXX_DiscardUnknown ¶
func (m *StreamCancelled) XXX_DiscardUnknown()
func (*StreamCancelled) XXX_Marshal ¶
func (m *StreamCancelled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamCancelled) XXX_Merge ¶
func (m *StreamCancelled) XXX_Merge(src proto.Message)
func (*StreamCancelled) XXX_Size ¶
func (m *StreamCancelled) XXX_Size() int
func (*StreamCancelled) XXX_Unmarshal ¶
func (m *StreamCancelled) XXX_Unmarshal(b []byte) error
type UnimplementedCrdtServer ¶
type UnimplementedCrdtServer struct { }
UnimplementedCrdtServer can be embedded to have forward compatible implementations.
func (*UnimplementedCrdtServer) Handle ¶
func (*UnimplementedCrdtServer) Handle(srv Crdt_HandleServer) error
type UnimplementedEntityDiscoveryServer ¶
type UnimplementedEntityDiscoveryServer struct { }
UnimplementedEntityDiscoveryServer can be embedded to have forward compatible implementations.
func (*UnimplementedEntityDiscoveryServer) Discover ¶
func (*UnimplementedEntityDiscoveryServer) Discover(ctx context.Context, req *ProxyInfo) (*EntitySpec, error)
func (*UnimplementedEntityDiscoveryServer) ReportError ¶
func (*UnimplementedEntityDiscoveryServer) ReportError(ctx context.Context, req *UserFunctionError) (*empty.Empty, error)
type UserFunctionError ¶
type UserFunctionError struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserFunctionError) Descriptor ¶
func (*UserFunctionError) Descriptor() ([]byte, []int)
func (*UserFunctionError) GetMessage ¶
func (m *UserFunctionError) GetMessage() string
func (*UserFunctionError) ProtoMessage ¶
func (*UserFunctionError) ProtoMessage()
func (*UserFunctionError) Reset ¶
func (m *UserFunctionError) Reset()
func (*UserFunctionError) String ¶
func (m *UserFunctionError) String() string
func (*UserFunctionError) XXX_DiscardUnknown ¶
func (m *UserFunctionError) XXX_DiscardUnknown()
func (*UserFunctionError) XXX_Marshal ¶
func (m *UserFunctionError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserFunctionError) XXX_Merge ¶
func (m *UserFunctionError) XXX_Merge(src proto.Message)
func (*UserFunctionError) XXX_Size ¶
func (m *UserFunctionError) XXX_Size() int
func (*UserFunctionError) XXX_Unmarshal ¶
func (m *UserFunctionError) XXX_Unmarshal(b []byte) error
type VoteDelta ¶
type VoteDelta struct { // Only set by the user function to change the nodes current vote. SelfVote bool `protobuf:"varint,1,opt,name=self_vote,json=selfVote,proto3" json:"self_vote,omitempty"` // Only set by the proxy to change the votes for and total voters. VotesFor int32 `protobuf:"varint,2,opt,name=votes_for,json=votesFor,proto3" json:"votes_for,omitempty"` TotalVoters int32 `protobuf:"varint,3,opt,name=total_voters,json=totalVoters,proto3" json:"total_voters,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VoteDelta) Descriptor ¶
func (*VoteDelta) GetSelfVote ¶
func (*VoteDelta) GetTotalVoters ¶
func (*VoteDelta) GetVotesFor ¶
func (*VoteDelta) ProtoMessage ¶
func (*VoteDelta) ProtoMessage()
func (*VoteDelta) XXX_DiscardUnknown ¶
func (m *VoteDelta) XXX_DiscardUnknown()
func (*VoteDelta) XXX_Marshal ¶
func (*VoteDelta) XXX_Unmarshal ¶
type VoteState ¶
type VoteState struct { // The number of votes for VotesFor uint32 `protobuf:"varint,1,opt,name=votes_for,json=votesFor,proto3" json:"votes_for,omitempty"` // The total number of voters TotalVoters uint32 `protobuf:"varint,2,opt,name=total_voters,json=totalVoters,proto3" json:"total_voters,omitempty"` // The vote of the current node, which is included in the above two numbers SelfVote bool `protobuf:"varint,3,opt,name=self_vote,json=selfVote,proto3" json:"self_vote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Vote. This allows nodes to vote on something.
func (*VoteState) Descriptor ¶
func (*VoteState) GetSelfVote ¶
func (*VoteState) GetTotalVoters ¶
func (*VoteState) GetVotesFor ¶
func (*VoteState) ProtoMessage ¶
func (*VoteState) ProtoMessage()
func (*VoteState) XXX_DiscardUnknown ¶
func (m *VoteState) XXX_DiscardUnknown()