Documentation ¶
Overview ¶
Package service manages the main logic of server.
Package service ¶
Package service represents gateway's service logic
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway interface { Start(ctx context.Context) (<-chan error, error) GetAgentCount(ctx context.Context) int Addrs(ctx context.Context) []string DoMulti(ctx context.Context, num int, f func(ctx context.Context, tgt string, ac vald.Client, copts ...grpc.CallOption) error) error BroadCast(ctx context.Context, f func(ctx context.Context, tgt string, ac vald.Client, copts ...grpc.CallOption) error) error }
func NewGateway ¶
type Option ¶
type Option func(g *gateway) error
func WithDiscoverer ¶
func WithDiscoverer(c discoverer.Client) Option
func WithErrGroup ¶
Click to show internal directories.
Click to hide internal directories.