Documentation
¶
Index ¶
- type Closer
- type Current
- func (c *Current) Check(ctx context.Context, val string) (bool, error)
- func (c *Current) Load(cp types.ContextProvider, chatID types.ChatID)
- func (c *Current) Reset(ctx context.Context) error
- func (c *Current) Save(ctx context.Context) error
- func (c *Current) Set(ctx context.Context, val string) error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Current ¶
type Current struct {
// contains filtered or unexported fields
}
Current is a current context for a chat. It's immutable and changes are not applied antil `Save` is called.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider - context provider for pending context state.
func NewProvider ¶
func NewProvider(origin types.ContextProvider) *Provider
Click to show internal directories.
Click to hide internal directories.