Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Delete(ctx context.Context, stateID string) error
- func (r *Repository) Get(ctx context.Context, stateID string) (stateentity.State, error)
- func (r *Repository) Save(ctx context.Context, id string, data stateentity.State) error
- func (r *Repository) SetExpire(ctx context.Context, stateID string, expiryTime time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository struct
func (*Repository) Delete ¶
func (r *Repository) Delete(ctx context.Context, stateID string) error
Delete state
func (*Repository) Get ¶
func (r *Repository) Get(ctx context.Context, stateID string) (stateentity.State, error)
Get return available state
func (*Repository) Save ¶
func (r *Repository) Save(ctx context.Context, id string, data stateentity.State) error
Save state
Click to show internal directories.
Click to hide internal directories.