Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithHTTPSession ¶
Types ¶
type InMemorySession ¶
type InMemorySession struct {
// contains filtered or unexported fields
}
func (*InMemorySession) GetWorkspace ¶
func (h *InMemorySession) GetWorkspace(_ context.Context) (string, error)
func (*InMemorySession) SetWorkspace ¶
func (h *InMemorySession) SetWorkspace(_ context.Context, s string) error
type RedisSession ¶
type RedisSession struct {
// contains filtered or unexported fields
}
func (*RedisSession) GetWorkspace ¶
func (r *RedisSession) GetWorkspace(ctx context.Context) (string, error)
func (*RedisSession) SetWorkspace ¶
func (r *RedisSession) SetWorkspace(ctx context.Context, s string) error
type Session ¶
type Session interface { GetWorkspace(context.Context) (string, error) SetWorkspace(context.Context, string) error }
func FromContext ¶
type StdioSession ¶
type StdioSession struct{}
func (*StdioSession) GetWorkspace ¶
func (h *StdioSession) GetWorkspace(_ context.Context) (string, error)
func (*StdioSession) SetWorkspace ¶
func (h *StdioSession) SetWorkspace(_ context.Context, s string) error
Click to show internal directories.
Click to hide internal directories.