Documentation ¶
Overview ¶
Package cluster is a generated protocol buffer package.
It is generated from these files:
protos.proto
It has these top-level messages:
TakeOwnership GrainRequest GrainResponse GrainErrorResponse
Index ¶
- Variables
- func Get(name string, kind string) (*actor.PID, error)
- func Start(clusterName, address string, provider ClusterProvider)
- type ClusterProvider
- type Grain
- type GrainCallConfig
- type GrainCallOption
- type GrainErrorResponse
- func (*GrainErrorResponse) Descriptor() ([]byte, []int)
- func (this *GrainErrorResponse) Equal(that interface{}) bool
- func (this *GrainErrorResponse) GoString() string
- func (m *GrainErrorResponse) Marshal() (dAtA []byte, err error)
- func (m *GrainErrorResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GrainErrorResponse) ProtoMessage()
- func (m *GrainErrorResponse) Reset()
- func (m *GrainErrorResponse) Size() (n int)
- func (this *GrainErrorResponse) String() string
- func (m *GrainErrorResponse) Unmarshal(dAtA []byte) error
- type GrainRequest
- func (*GrainRequest) Descriptor() ([]byte, []int)
- func (this *GrainRequest) Equal(that interface{}) bool
- func (this *GrainRequest) GoString() string
- func (m *GrainRequest) Marshal() (dAtA []byte, err error)
- func (m *GrainRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GrainRequest) ProtoMessage()
- func (m *GrainRequest) Reset()
- func (m *GrainRequest) Size() (n int)
- func (this *GrainRequest) String() string
- func (m *GrainRequest) Unmarshal(dAtA []byte) error
- type GrainResponse
- func (*GrainResponse) Descriptor() ([]byte, []int)
- func (this *GrainResponse) Equal(that interface{}) bool
- func (this *GrainResponse) GoString() string
- func (m *GrainResponse) Marshal() (dAtA []byte, err error)
- func (m *GrainResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GrainResponse) ProtoMessage()
- func (m *GrainResponse) Reset()
- func (m *GrainResponse) Size() (n int)
- func (this *GrainResponse) String() string
- func (m *GrainResponse) Unmarshal(dAtA []byte) error
- type MemberAvailableEvent
- type MemberByKindRequest
- type MemberByKindResponse
- type MemberJoinedEvent
- type MemberLeftEvent
- type MemberMeta
- type MemberRejoinedEvent
- type MemberStatus
- type MemberStatusBatch
- type MemberStatusEvent
- type MemberUnavailableEvent
- type TakeOwnership
- func (*TakeOwnership) Descriptor() ([]byte, []int)
- func (this *TakeOwnership) Equal(that interface{}) bool
- func (m *TakeOwnership) GetPid() *actor.PID
- func (this *TakeOwnership) GoString() string
- func (m *TakeOwnership) Marshal() (dAtA []byte, err error)
- func (m *TakeOwnership) MarshalTo(dAtA []byte) (int, error)
- func (*TakeOwnership) ProtoMessage()
- func (m *TakeOwnership) Reset()
- func (m *TakeOwnership) Size() (n int)
- func (this *TakeOwnership) String() string
- func (m *TakeOwnership) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthProtos = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProtos = fmt.Errorf("proto: integer overflow") )
Functions ¶
func Start ¶
func Start(clusterName, address string, provider ClusterProvider)
Types ¶
type ClusterProvider ¶
type GrainCallConfig ¶
func ApplyGrainCallOptions ¶
func ApplyGrainCallOptions(options []GrainCallOption) *GrainCallConfig
func DefaultGrainCallConfig ¶
func DefaultGrainCallConfig() *GrainCallConfig
type GrainCallOption ¶
type GrainCallOption func(*GrainCallConfig)
func WithRetry ¶
func WithRetry(count int) GrainCallOption
func WithTimeout ¶
func WithTimeout(timeout time.Duration) GrainCallOption
type GrainErrorResponse ¶
type GrainErrorResponse struct {
Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
}
func (*GrainErrorResponse) Descriptor ¶
func (*GrainErrorResponse) Descriptor() ([]byte, []int)
func (*GrainErrorResponse) Equal ¶
func (this *GrainErrorResponse) Equal(that interface{}) bool
func (*GrainErrorResponse) GoString ¶
func (this *GrainErrorResponse) GoString() string
func (*GrainErrorResponse) Marshal ¶
func (m *GrainErrorResponse) Marshal() (dAtA []byte, err error)
func (*GrainErrorResponse) MarshalTo ¶
func (m *GrainErrorResponse) MarshalTo(dAtA []byte) (int, error)
func (*GrainErrorResponse) ProtoMessage ¶
func (*GrainErrorResponse) ProtoMessage()
func (*GrainErrorResponse) Reset ¶
func (m *GrainErrorResponse) Reset()
func (*GrainErrorResponse) Size ¶
func (m *GrainErrorResponse) Size() (n int)
func (*GrainErrorResponse) String ¶
func (this *GrainErrorResponse) String() string
func (*GrainErrorResponse) Unmarshal ¶
func (m *GrainErrorResponse) Unmarshal(dAtA []byte) error
type GrainRequest ¶
type GrainRequest struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` MessageData []byte `protobuf:"bytes,2,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"` }
func (*GrainRequest) Descriptor ¶
func (*GrainRequest) Descriptor() ([]byte, []int)
func (*GrainRequest) Equal ¶
func (this *GrainRequest) Equal(that interface{}) bool
func (*GrainRequest) GoString ¶
func (this *GrainRequest) GoString() string
func (*GrainRequest) Marshal ¶
func (m *GrainRequest) Marshal() (dAtA []byte, err error)
func (*GrainRequest) ProtoMessage ¶
func (*GrainRequest) ProtoMessage()
func (*GrainRequest) Reset ¶
func (m *GrainRequest) Reset()
func (*GrainRequest) Size ¶
func (m *GrainRequest) Size() (n int)
func (*GrainRequest) String ¶
func (this *GrainRequest) String() string
func (*GrainRequest) Unmarshal ¶
func (m *GrainRequest) Unmarshal(dAtA []byte) error
type GrainResponse ¶
type GrainResponse struct {
MessageData []byte `protobuf:"bytes,1,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"`
}
func (*GrainResponse) Descriptor ¶
func (*GrainResponse) Descriptor() ([]byte, []int)
func (*GrainResponse) Equal ¶
func (this *GrainResponse) Equal(that interface{}) bool
func (*GrainResponse) GoString ¶
func (this *GrainResponse) GoString() string
func (*GrainResponse) Marshal ¶
func (m *GrainResponse) Marshal() (dAtA []byte, err error)
func (*GrainResponse) ProtoMessage ¶
func (*GrainResponse) ProtoMessage()
func (*GrainResponse) Reset ¶
func (m *GrainResponse) Reset()
func (*GrainResponse) Size ¶
func (m *GrainResponse) Size() (n int)
func (*GrainResponse) String ¶
func (this *GrainResponse) String() string
func (*GrainResponse) Unmarshal ¶
func (m *GrainResponse) Unmarshal(dAtA []byte) error
type MemberAvailableEvent ¶
type MemberAvailableEvent struct {
MemberMeta
}
func (*MemberAvailableEvent) MemberStatusEvent ¶
func (*MemberAvailableEvent) MemberStatusEvent()
type MemberByKindRequest ¶
type MemberByKindRequest struct {
// contains filtered or unexported fields
}
type MemberByKindResponse ¶
type MemberByKindResponse struct {
// contains filtered or unexported fields
}
type MemberJoinedEvent ¶
type MemberJoinedEvent struct {
MemberMeta
}
func (*MemberJoinedEvent) MemberStatusEvent ¶
func (*MemberJoinedEvent) MemberStatusEvent()
type MemberLeftEvent ¶
type MemberLeftEvent struct {
MemberMeta
}
func (*MemberLeftEvent) MemberStatusEvent ¶
func (*MemberLeftEvent) MemberStatusEvent()
type MemberMeta ¶
func (*MemberMeta) GetKinds ¶
func (e *MemberMeta) GetKinds() []string
func (*MemberMeta) Name ¶
func (e *MemberMeta) Name() string
type MemberRejoinedEvent ¶
type MemberRejoinedEvent struct {
MemberMeta
}
func (*MemberRejoinedEvent) MemberStatusEvent ¶
func (*MemberRejoinedEvent) MemberStatusEvent()
type MemberStatus ¶
type MemberStatusBatch ¶
type MemberStatusBatch []*MemberStatus
type MemberStatusEvent ¶
type MemberStatusEvent interface { MemberStatusEvent() GetKinds() []string }
type MemberUnavailableEvent ¶
type MemberUnavailableEvent struct {
}func (*MemberUnavailableEvent) MemberStatusEvent ¶
func (*MemberUnavailableEvent) MemberStatusEvent()
type TakeOwnership ¶
type TakeOwnership struct { Pid *actor.PID `protobuf:"bytes,1,opt,name=pid" json:"pid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` }
func (*TakeOwnership) Descriptor ¶
func (*TakeOwnership) Descriptor() ([]byte, []int)
func (*TakeOwnership) Equal ¶
func (this *TakeOwnership) Equal(that interface{}) bool
func (*TakeOwnership) GetPid ¶
func (m *TakeOwnership) GetPid() *actor.PID
func (*TakeOwnership) GoString ¶
func (this *TakeOwnership) GoString() string
func (*TakeOwnership) Marshal ¶
func (m *TakeOwnership) Marshal() (dAtA []byte, err error)
func (*TakeOwnership) ProtoMessage ¶
func (*TakeOwnership) ProtoMessage()
func (*TakeOwnership) Reset ¶
func (m *TakeOwnership) Reset()
func (*TakeOwnership) Size ¶
func (m *TakeOwnership) Size() (n int)
func (*TakeOwnership) String ¶
func (this *TakeOwnership) String() string
func (*TakeOwnership) Unmarshal ¶
func (m *TakeOwnership) Unmarshal(dAtA []byte) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.