Documentation
¶
Index ¶
- type DeleteInput
- type DeleteOutput
- type DestroyInput
- type DestroyOutput
- type GetInput
- type GetOutput
- type Session
- func (s *Session) AssertOutputsEmpty()
- func (s *Session) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (s *Session) Destroy(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (s *Session) Get(ctx context.Context, id string, condition *request.Condition) (*user.User, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteInput ¶
type DeleteOutput ¶
type DestroyInput ¶
type DestroyOutput ¶
type Session ¶
type Session struct {
*test.Closer
GetInvocations int
GetInputs []GetInput
GetStub func(ctx context.Context, id string, condition *request.Condition) (*user.User, error)
GetOutputs []GetOutput
GetOutput *GetOutput
DeleteInvocations int
DeleteInputs []DeleteInput
DeleteStub func(ctx context.Context, id string, condition *request.Condition) (bool, error)
DeleteOutputs []DeleteOutput
DeleteOutput *DeleteOutput
DestroyInvocations int
DestroyInputs []DestroyInput
DestroyStub func(ctx context.Context, id string, condition *request.Condition) (bool, error)
DestroyOutputs []DestroyOutput
DestroyOutput *DestroyOutput
}
func NewSession ¶
func NewSession() *Session
func (*Session) AssertOutputsEmpty ¶
func (s *Session) AssertOutputsEmpty()
type Store ¶
type Store struct {
NewSessionInvocations int
NewSessionStub func() userStoreStructured.Session
NewSessionOutputs []userStoreStructured.Session
NewSessionOutput *userStoreStructured.Session
}
func (*Store) AssertOutputsEmpty ¶
func (s *Store) AssertOutputsEmpty()
func (*Store) NewSession ¶
func (s *Store) NewSession() userStoreStructured.Session
Click to show internal directories.
Click to hide internal directories.