Documentation ¶
Overview ¶
Code generated by atomix-go-framework. DO NOT EDIT.
Code generated by atomix-go-framework. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterService(node *rsm.Node)
- type AppendProposal
- type AppendProposals
- type ClearProposal
- type ClearProposals
- type ElementsProposal
- type ElementsProposals
- type EventsProposal
- type EventsProposals
- type GetProposal
- type GetProposals
- type InsertProposal
- type InsertProposals
- type ListState
- func (*ListState) Descriptor() ([]byte, []int)
- func (m *ListState) GetValues() []ListValue
- func (m *ListState) Marshal() (dAtA []byte, err error)
- func (m *ListState) MarshalTo(dAtA []byte) (int, error)
- func (m *ListState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListState) ProtoMessage()
- func (m *ListState) Reset()
- func (m *ListState) Size() (n int)
- func (m *ListState) String() string
- func (m *ListState) Unmarshal(dAtA []byte) error
- func (m *ListState) XXX_DiscardUnknown()
- func (m *ListState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListState) XXX_Merge(src proto.Message)
- func (m *ListState) XXX_Size() int
- func (m *ListState) XXX_Unmarshal(b []byte) error
- type ListValue
- func (*ListValue) Descriptor() ([]byte, []int)
- func (m *ListValue) GetValue() string
- func (m *ListValue) Marshal() (dAtA []byte, err error)
- func (m *ListValue) MarshalTo(dAtA []byte) (int, error)
- func (m *ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListValue) ProtoMessage()
- func (m *ListValue) Reset()
- func (m *ListValue) Size() (n int)
- func (m *ListValue) String() string
- func (m *ListValue) Unmarshal(dAtA []byte) error
- func (m *ListValue) XXX_DiscardUnknown()
- func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListValue) XXX_Merge(src proto.Message)
- func (m *ListValue) XXX_Size() int
- func (m *ListValue) XXX_Unmarshal(b []byte) error
- type NewServiceFunc
- type Proposal
- type ProposalID
- type Proposals
- type RemoveProposal
- type RemoveProposals
- type Service
- type ServiceAdaptor
- type ServiceContext
- type Session
- type SessionID
- type SessionState
- type Sessions
- type SetProposal
- type SetProposals
- type SizeProposal
- type SizeProposals
- type SnapshotReader
- type SnapshotWriter
- type Watcher
Constants ¶
View Source
const Type = "List"
Variables ¶
Functions ¶
func RegisterService ¶
RegisterService registers the election primitive service on the given node
Types ¶
type AppendProposal ¶
type AppendProposal interface { Proposal Request() *list.AppendRequest Reply(*list.AppendResponse) error // contains filtered or unexported methods }
type AppendProposals ¶
type AppendProposals interface { Get(ProposalID) (AppendProposal, bool) List() []AppendProposal // contains filtered or unexported methods }
type ClearProposal ¶
type ClearProposal interface { Proposal Request() *list.ClearRequest Reply(*list.ClearResponse) error // contains filtered or unexported methods }
type ClearProposals ¶
type ClearProposals interface { Get(ProposalID) (ClearProposal, bool) List() []ClearProposal // contains filtered or unexported methods }
type ElementsProposal ¶
type ElementsProposal interface { Proposal Request() *list.ElementsRequest Notify(*list.ElementsResponse) error Close() error }
type ElementsProposals ¶
type ElementsProposals interface { Get(ProposalID) (ElementsProposal, bool) List() []ElementsProposal // contains filtered or unexported methods }
type EventsProposal ¶
type EventsProposal interface { Proposal Request() *list.EventsRequest Notify(*list.EventsResponse) error Close() error }
type EventsProposals ¶
type EventsProposals interface { Get(ProposalID) (EventsProposal, bool) List() []EventsProposal // contains filtered or unexported methods }
type GetProposal ¶
type GetProposal interface { Proposal Request() *list.GetRequest Reply(*list.GetResponse) error // contains filtered or unexported methods }
type GetProposals ¶
type GetProposals interface { Get(ProposalID) (GetProposal, bool) List() []GetProposal // contains filtered or unexported methods }
type InsertProposal ¶
type InsertProposal interface { Proposal Request() *list.InsertRequest Reply(*list.InsertResponse) error // contains filtered or unexported methods }
type InsertProposals ¶
type InsertProposals interface { Get(ProposalID) (InsertProposal, bool) List() []InsertProposal // contains filtered or unexported methods }
type ListState ¶
type ListState struct {
Values []ListValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values"`
}
func (*ListState) Descriptor ¶
func (*ListState) MarshalToSizedBuffer ¶
func (*ListState) ProtoMessage ¶
func (*ListState) ProtoMessage()
func (*ListState) XXX_DiscardUnknown ¶
func (m *ListState) XXX_DiscardUnknown()
func (*ListState) XXX_Marshal ¶
func (*ListState) XXX_Unmarshal ¶
type ListValue ¶
type ListValue struct { meta.ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3,embedded=meta" json:"meta"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*ListValue) Descriptor ¶
func (*ListValue) MarshalToSizedBuffer ¶
func (*ListValue) ProtoMessage ¶
func (*ListValue) ProtoMessage()
func (*ListValue) XXX_DiscardUnknown ¶
func (m *ListValue) XXX_DiscardUnknown()
func (*ListValue) XXX_Marshal ¶
func (*ListValue) XXX_Unmarshal ¶
type NewServiceFunc ¶
type NewServiceFunc func(ServiceContext) Service
type ProposalID ¶
type ProposalID uint64
type Proposals ¶
type Proposals interface { Size() SizeProposals Append() AppendProposals Insert() InsertProposals Get() GetProposals Set() SetProposals Remove() RemoveProposals Clear() ClearProposals Events() EventsProposals Elements() ElementsProposals }
type RemoveProposal ¶
type RemoveProposal interface { Proposal Request() *list.RemoveRequest Reply(*list.RemoveResponse) error // contains filtered or unexported methods }
type RemoveProposals ¶
type RemoveProposals interface { Get(ProposalID) (RemoveProposal, bool) List() []RemoveProposal // contains filtered or unexported methods }
type Service ¶
type Service interface { ServiceContext Backup(SnapshotWriter) error Restore(SnapshotReader) error // Size gets the number of elements in the list Size(SizeProposal) error // Append appends a value to the list Append(AppendProposal) error // Insert inserts a value at a specific index in the list Insert(InsertProposal) error // Get gets the value at an index in the list Get(GetProposal) error // Set sets the value at an index in the list Set(SetProposal) error // Remove removes an element from the list Remove(RemoveProposal) error // Clear removes all elements from the list Clear(ClearProposal) error // Events listens for change events Events(EventsProposal) error // Elements streams all elements in the list Elements(ElementsProposal) error }
type ServiceAdaptor ¶
func (*ServiceAdaptor) SessionClosed ¶
func (s *ServiceAdaptor) SessionClosed(session rsm.Session)
func (*ServiceAdaptor) SessionExpired ¶
func (s *ServiceAdaptor) SessionExpired(session rsm.Session)
func (*ServiceAdaptor) SessionOpen ¶
func (s *ServiceAdaptor) SessionOpen(rsmSession rsm.Session)
type ServiceContext ¶
type Session ¶
type Session interface { ID() SessionID State() SessionState Watch(func(SessionState)) Watcher Proposals() Proposals // contains filtered or unexported methods }
type SetProposal ¶
type SetProposal interface { Proposal Request() *list.SetRequest Reply(*list.SetResponse) error // contains filtered or unexported methods }
type SetProposals ¶
type SetProposals interface { Get(ProposalID) (SetProposal, bool) List() []SetProposal // contains filtered or unexported methods }
type SizeProposal ¶
type SizeProposal interface { Proposal Request() *list.SizeRequest Reply(*list.SizeResponse) error // contains filtered or unexported methods }
type SizeProposals ¶
type SizeProposals interface { Get(ProposalID) (SizeProposal, bool) List() []SizeProposal // contains filtered or unexported methods }
type SnapshotReader ¶
type SnapshotWriter ¶
Click to show internal directories.
Click to hide internal directories.