Documentation
¶
Index ¶
- type FakeSessionService
- func (s *FakeSessionService) AppendEvent(ctx context.Context, curSession session.Session, event *session.Event) error
- func (s *FakeSessionService) Create(ctx context.Context, req *session.CreateRequest) (*session.CreateResponse, error)
- func (s *FakeSessionService) Delete(ctx context.Context, req *session.DeleteRequest) error
- func (s *FakeSessionService) Get(ctx context.Context, req *session.GetRequest) (*session.GetResponse, error)
- func (s *FakeSessionService) List(ctx context.Context, req *session.ListRequest) (*session.ListResponse, error)
- type SessionKey
- type TestEvents
- type TestSession
- type TestState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSessionService ¶
type FakeSessionService struct {
Sessions map[SessionKey]TestSession
}
func (*FakeSessionService) AppendEvent ¶
func (*FakeSessionService) Create ¶
func (s *FakeSessionService) Create(ctx context.Context, req *session.CreateRequest) (*session.CreateResponse, error)
func (*FakeSessionService) Delete ¶
func (s *FakeSessionService) Delete(ctx context.Context, req *session.DeleteRequest) error
func (*FakeSessionService) Get ¶
func (s *FakeSessionService) Get(ctx context.Context, req *session.GetRequest) (*session.GetResponse, error)
func (*FakeSessionService) List ¶
func (s *FakeSessionService) List(ctx context.Context, req *session.ListRequest) (*session.ListResponse, error)
type SessionKey ¶
type TestEvents ¶
func (TestEvents) Len ¶
func (e TestEvents) Len() int
type TestSession ¶
type TestSession struct {
Id SessionKey
SessionState TestState
SessionEvents TestEvents
UpdatedAt time.Time
}
func (TestSession) AppName ¶
func (s TestSession) AppName() string
func (TestSession) Events ¶
func (s TestSession) Events() session.Events
func (TestSession) ID ¶
func (s TestSession) ID() string
func (TestSession) LastUpdateTime ¶
func (s TestSession) LastUpdateTime() time.Time
func (TestSession) State ¶
func (s TestSession) State() session.State
func (TestSession) UserID ¶
func (s TestSession) UserID() string
Click to show internal directories.
Click to hide internal directories.