Documentation ¶
Index ¶
- type InstanceState
- type Manager
- type SessionState
- type SessionsManager
- func (s *SessionsManager) ExpiresAfter(instance *instance.State, duration time.Duration)
- func (sm *SessionsManager) LoadSessions(reader io.ReadCloser) error
- func (s *SessionsManager) RequestReadySession(ctx context.Context, names []string, duration time.Duration, ...) (*SessionState, error)
- func (s *SessionsManager) RequestReadySessionGroup(ctx context.Context, group string, duration time.Duration, ...) (sessionState *SessionState, err error)
- func (s *SessionsManager) RequestSession(names []string, duration time.Duration) (sessionState *SessionState)
- func (s *SessionsManager) RequestSessionGroup(group string, duration time.Duration) (sessionState *SessionState)
- func (sm *SessionsManager) SaveSessions(writer io.WriteCloser) error
- func (s *SessionsManager) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceState ¶
type Manager ¶
type Manager interface { RequestSession(names []string, duration time.Duration) *SessionState RequestSessionGroup(group string, duration time.Duration) *SessionState RequestReadySession(ctx context.Context, names []string, duration time.Duration, timeout time.Duration) (*SessionState, error) RequestReadySessionGroup(ctx context.Context, group string, duration time.Duration, timeout time.Duration) (*SessionState, error) LoadSessions(io.ReadCloser) error SaveSessions(io.WriteCloser) error Stop() }
type SessionState ¶
func (*SessionState) IsReady ¶
func (s *SessionState) IsReady() bool
func (*SessionState) MarshalJSON ¶
func (s *SessionState) MarshalJSON() ([]byte, error)
func (*SessionState) Status ¶
func (s *SessionState) Status() string
type SessionsManager ¶
type SessionsManager struct {
// contains filtered or unexported fields
}
func (*SessionsManager) ExpiresAfter ¶
func (s *SessionsManager) ExpiresAfter(instance *instance.State, duration time.Duration)
func (*SessionsManager) LoadSessions ¶
func (sm *SessionsManager) LoadSessions(reader io.ReadCloser) error
func (*SessionsManager) RequestReadySession ¶
func (s *SessionsManager) RequestReadySession(ctx context.Context, names []string, duration time.Duration, timeout time.Duration) (*SessionState, error)
func (*SessionsManager) RequestReadySessionGroup ¶
func (s *SessionsManager) RequestReadySessionGroup(ctx context.Context, group string, duration time.Duration, timeout time.Duration) (sessionState *SessionState, err error)
func (*SessionsManager) RequestSession ¶
func (s *SessionsManager) RequestSession(names []string, duration time.Duration) (sessionState *SessionState)
func (*SessionsManager) RequestSessionGroup ¶
func (s *SessionsManager) RequestSessionGroup(group string, duration time.Duration) (sessionState *SessionState)
func (*SessionsManager) SaveSessions ¶
func (sm *SessionsManager) SaveSessions(writer io.WriteCloser) error
func (*SessionsManager) Stop ¶
func (s *SessionsManager) Stop()
Click to show internal directories.
Click to hide internal directories.