Documentation ¶
Index ¶
- Variables
- func NewBroadcastGroup(routees ...*actor.PID) *actor.Props
- func NewBroadcastPool(size int, opts ...actor.PropsOption) *actor.Props
- func NewConsistentHashGroup(routees ...*actor.PID) *actor.Props
- func NewConsistentHashPool(size int, opts ...actor.PropsOption) *actor.Props
- func NewRandomGroup(routees ...*actor.PID) *actor.Props
- func NewRandomPool(size int, opts ...actor.PropsOption) *actor.Props
- func NewRoundRobinGroup(routees ...*actor.PID) *actor.Props
- func NewRoundRobinPool(size int, opts ...actor.PropsOption) *actor.Props
- type AddRoutee
- type AdjustPoolSize
- func (*AdjustPoolSize) Descriptor() ([]byte, []int)deprecated
- func (x *AdjustPoolSize) GetChange() int32
- func (*AdjustPoolSize) ManagementMessage()
- func (*AdjustPoolSize) ProtoMessage()
- func (x *AdjustPoolSize) ProtoReflect() protoreflect.Message
- func (x *AdjustPoolSize) Reset()
- func (x *AdjustPoolSize) String() string
- type BroadcastMessage
- type GetRoutees
- type GroupRouter
- type Hasher
- type ManagementMessage
- type PoolRouter
- type RemoveRoutee
- func (*RemoveRoutee) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveRoutee) GetPID() *actor.PID
- func (*RemoveRoutee) ManagementMessage()
- func (*RemoveRoutee) ProtoMessage()
- func (x *RemoveRoutee) ProtoReflect() protoreflect.Message
- func (x *RemoveRoutee) Reset()
- func (x *RemoveRoutee) String() string
- type Routees
- type RouterConfig
- type RouterType
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var File_routercontracts_proto protoreflect.FileDescriptor
Functions ¶
func NewBroadcastPool ¶
func NewBroadcastPool(size int, opts ...actor.PropsOption) *actor.Props
func NewConsistentHashPool ¶
func NewConsistentHashPool(size int, opts ...actor.PropsOption) *actor.Props
func NewRandomPool ¶
func NewRandomPool(size int, opts ...actor.PropsOption) *actor.Props
func NewRoundRobinPool ¶
func NewRoundRobinPool(size int, opts ...actor.PropsOption) *actor.Props
Types ¶
type AddRoutee ¶
type AddRoutee struct { PID *actor.PID `protobuf:"bytes,1,opt,name=PID,proto3" json:"PID,omitempty"` // contains filtered or unexported fields }
func (*AddRoutee) Descriptor
deprecated
func (*AddRoutee) ManagementMessage ¶
func (*AddRoutee) ManagementMessage()
func (*AddRoutee) ProtoMessage ¶
func (*AddRoutee) ProtoMessage()
func (*AddRoutee) ProtoReflect ¶
func (x *AddRoutee) ProtoReflect() protoreflect.Message
type AdjustPoolSize ¶
type AdjustPoolSize struct { Change int32 `protobuf:"varint,1,opt,name=change,proto3" json:"change,omitempty"` // contains filtered or unexported fields }
func (*AdjustPoolSize) Descriptor
deprecated
func (*AdjustPoolSize) Descriptor() ([]byte, []int)
Deprecated: Use AdjustPoolSize.ProtoReflect.Descriptor instead.
func (*AdjustPoolSize) GetChange ¶
func (x *AdjustPoolSize) GetChange() int32
func (*AdjustPoolSize) ManagementMessage ¶
func (*AdjustPoolSize) ManagementMessage()
func (*AdjustPoolSize) ProtoMessage ¶
func (*AdjustPoolSize) ProtoMessage()
func (*AdjustPoolSize) ProtoReflect ¶
func (x *AdjustPoolSize) ProtoReflect() protoreflect.Message
func (*AdjustPoolSize) Reset ¶
func (x *AdjustPoolSize) Reset()
func (*AdjustPoolSize) String ¶
func (x *AdjustPoolSize) String() string
type BroadcastMessage ¶
type BroadcastMessage struct {
Message interface{}
}
func (*BroadcastMessage) ManagementMessage ¶
func (*BroadcastMessage) ManagementMessage()
type GetRoutees ¶
type GetRoutees struct {
// contains filtered or unexported fields
}
func (*GetRoutees) Descriptor
deprecated
func (*GetRoutees) Descriptor() ([]byte, []int)
Deprecated: Use GetRoutees.ProtoReflect.Descriptor instead.
func (*GetRoutees) ManagementMessage ¶
func (*GetRoutees) ManagementMessage()
func (*GetRoutees) ProtoMessage ¶
func (*GetRoutees) ProtoMessage()
func (*GetRoutees) ProtoReflect ¶
func (x *GetRoutees) ProtoReflect() protoreflect.Message
func (*GetRoutees) Reset ¶
func (x *GetRoutees) Reset()
func (*GetRoutees) String ¶
func (x *GetRoutees) String() string
type GroupRouter ¶
func (*GroupRouter) RouterType ¶
func (config *GroupRouter) RouterType() RouterType
type ManagementMessage ¶
type ManagementMessage interface {
ManagementMessage()
}
type PoolRouter ¶
type PoolRouter struct {
PoolSize int
}
func (*PoolRouter) RouterType ¶
func (config *PoolRouter) RouterType() RouterType
type RemoveRoutee ¶
type RemoveRoutee struct { PID *actor.PID `protobuf:"bytes,1,opt,name=PID,proto3" json:"PID,omitempty"` // contains filtered or unexported fields }
func (*RemoveRoutee) Descriptor
deprecated
func (*RemoveRoutee) Descriptor() ([]byte, []int)
Deprecated: Use RemoveRoutee.ProtoReflect.Descriptor instead.
func (*RemoveRoutee) GetPID ¶
func (x *RemoveRoutee) GetPID() *actor.PID
func (*RemoveRoutee) ManagementMessage ¶
func (*RemoveRoutee) ManagementMessage()
func (*RemoveRoutee) ProtoMessage ¶
func (*RemoveRoutee) ProtoMessage()
func (*RemoveRoutee) ProtoReflect ¶
func (x *RemoveRoutee) ProtoReflect() protoreflect.Message
func (*RemoveRoutee) Reset ¶
func (x *RemoveRoutee) Reset()
func (*RemoveRoutee) String ¶
func (x *RemoveRoutee) String() string
type Routees ¶
type Routees struct { PIDs []*actor.PID `protobuf:"bytes,1,rep,name=PIDs,proto3" json:"PIDs,omitempty"` // contains filtered or unexported fields }
func (*Routees) Descriptor
deprecated
func (*Routees) ProtoMessage ¶
func (*Routees) ProtoMessage()
func (*Routees) ProtoReflect ¶
func (x *Routees) ProtoReflect() protoreflect.Message
type RouterConfig ¶
Click to show internal directories.
Click to hide internal directories.