Documentation ¶
Index ¶
- type Client
- func (x *Client) Close() error
- func (x *Client) GetOrCreateState(ctx context.Context, msgType types.MsgType, input *model.State) (*model.State, bool, error)
- func (x *Client) GetState(ctx context.Context, msgType types.MsgType, id string) (*model.State, error)
- func (x *Client) UpdateState(ctx context.Context, msgType types.MsgType, id string, state types.MsgState, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetOrCreateState ¶
func (x *Client) GetOrCreateState(ctx context.Context, msgType types.MsgType, input *model.State) (*model.State, bool, error)
GetOrCreateState returns the state of message processing. If the state is not found, it creates a new state and returns it. If the state is already acquired, it returns the state.
Click to show internal directories.
Click to hide internal directories.