Documentation ¶
Index ¶
- type App
- func (a *App) DeleteKey(ctx context.Context, key string) error
- func (a *App) MatchTopic(ctx context.Context, req *api.MatchTopicRequest) (*api.MatchTopicResponse, error)
- func (a *App) PutKey(ctx context.Context, key, value string) error
- func (a *App) ReadKey(ctx context.Context, key string) (value string, exists bool, err error)
- func (a *App) ReadPrefixKey(ctx context.Context, prefix string) (value map[string]string, err error)
- func (a *App) StartTopicCluster(ctx context.Context, option ...Option) error
- func (a *App) Subscribe(ctx context.Context, request *proto.SubRequest) (rsp *proto.SubResponse, err error)
- func (a *App) UnSubscribe(ctx context.Context, request *proto.UnSubRequest) (rsp *proto.UnSubResponse, err error)
- type Cluster
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) MatchTopic ¶
func (a *App) MatchTopic(ctx context.Context, req *api.MatchTopicRequest) (*api.MatchTopicResponse, error)
func (*App) ReadPrefixKey ¶
func (*App) StartTopicCluster ¶
func (*App) Subscribe ¶
func (a *App) Subscribe(ctx context.Context, request *proto.SubRequest) (rsp *proto.SubResponse, err error)
func (*App) UnSubscribe ¶
func (a *App) UnSubscribe(ctx context.Context, request *proto.UnSubRequest) (rsp *proto.UnSubResponse, err error)
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
type Option ¶
type Option func(*Cluster)
func WithConfig ¶
func WithInitMember ¶
func WithNodeConfig ¶
func WithNodeConfig(nodeConfig config.NodeHostConfig) Option
func WithStateMachine ¶
func WithStateMachine(state statemachine.IStateMachine) Option
Click to show internal directories.
Click to hide internal directories.