Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
contract.MembershipOperator
}
func NewClient ¶
func NewClient(d Dependencies) (Client, error)
type DefaultTool ¶
func NewTool ¶
func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool
func (*DefaultTool) EnsureMembership ¶
func (d *DefaultTool) EnsureMembership(ctx context.Context, opts contract.EnsureMembershipOptions) (*contract.ID, error)
EnsureMembership ensures that a membership group exists for the provided members.
type Dependencies ¶
type Dependencies struct {
A contract.ArbiterOperator
R contract.RouterOperator
M contract.MongoOperator
}
Click to show internal directories.
Click to hide internal directories.