Documentation ¶
Index ¶
- type ConnectOption
- type Group
- type ID
- type Member
- type Option
- func WithHost(host string) Option
- func WithJoinTimeout(timeout time.Duration) Option
- func WithMemberID(memberID string) Option
- func WithNamespace(namespace string) Option
- func WithPort(port int) Option
- func WithScope(scope string) Option
- func WithServerOption(option grpc.ServerOption) Option
- func WithServerOptions(options ...grpc.ServerOption) Option
- func WithService(service Service) Option
- func WithServices(services ...Service) Option
- type Peer
- type Service
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectOption ¶ added in v0.2.1
type ConnectOption interface {
// contains filtered or unexported methods
}
ConnectOption is an option for connecting to a peer
func WithDialOption ¶ added in v0.2.1
func WithDialOption(option grpc.DialOption) ConnectOption
WithDialOption creates a dial option for the gRPC connection
func WithDialOptions ¶ added in v0.2.1
func WithDialOptions(options ...grpc.DialOption) ConnectOption
WithDialOptions creates a dial option for the gRPC connection
type Group ¶
Group manages the peer group for a client
func NewGroupWithContext ¶ added in v0.3.1
NewGroupWithContext creates a new peer group
type Member ¶
type Member struct { *Peer // contains filtered or unexported fields }
Member is a local group member
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option provides a peer option
func WithJoinTimeout ¶
WithJoinTimeout configures the client's join timeout
func WithMemberID ¶
WithMemberID configures the peer's member ID
func WithNamespace ¶
WithNamespace configures the client's partition group namespace
func WithServerOption ¶ added in v0.2.1
func WithServerOption(option grpc.ServerOption) Option
WithServerOption configures a server option
func WithServerOptions ¶ added in v0.2.1
func WithServerOptions(options ...grpc.ServerOption) Option
WithServerOptions configures server options
func WithService ¶
WithService configures a peer-to-peer service
func WithServices ¶ added in v0.2.1
WithServices configures peer-to-peer services