Documentation ¶
Index ¶
- type CreateInput
- type CreateOutput
- type DeleteInput
- type DeleteOutput
- type GetInput
- type GetOutput
- type ListInput
- type ListOutput
- type Session
- func (s *Session) AssertOutputsEmpty()
- func (s *Session) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)
- func (s *Session) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (s *Session) Get(ctx context.Context, id string) (*dataSource.Source, error)
- func (s *Session) List(ctx context.Context, userID string, filter *dataSource.Filter, ...) (dataSource.Sources, error)
- func (s *Session) Update(ctx context.Context, id string, condition *request.Condition, ...) (*dataSource.Source, error)
- type Store
- type UpdateInput
- type UpdateOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct { Context context.Context UserID string Create *dataSource.Create }
type CreateOutput ¶
type CreateOutput struct { Source *dataSource.Source Error error }
type DeleteInput ¶
type DeleteOutput ¶
type GetOutput ¶
type GetOutput struct { Source *dataSource.Source Error error }
type ListInput ¶
type ListInput struct { Context context.Context UserID string Filter *dataSource.Filter Pagination *page.Pagination }
type ListOutput ¶
type ListOutput struct { Sources dataSource.Sources Error error }
type Session ¶
type Session struct { *test.Closer ListInvocations int ListInputs []ListInput ListStub func(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.Sources, error) ListOutputs []ListOutput ListOutput *ListOutput CreateInvocations int CreateInputs []CreateInput CreateStub func(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error) CreateOutputs []CreateOutput CreateOutput *CreateOutput GetInvocations int GetInputs []GetInput GetStub func(ctx context.Context, id string) (*dataSource.Source, error) GetOutputs []GetOutput GetOutput *GetOutput UpdateInvocations int UpdateInputs []UpdateInput UpdateStub func(ctx context.Context, id string, condition *request.Condition, create *dataSource.Update) (*dataSource.Source, error) UpdateOutputs []UpdateOutput UpdateOutput *UpdateOutput DeleteInvocations int DeleteInputs []DeleteInput DeleteStub func(ctx context.Context, id string, condition *request.Condition) (bool, error) DeleteOutputs []DeleteOutput DeleteOutput *DeleteOutput }
func NewSession ¶
func NewSession() *Session
func (*Session) AssertOutputsEmpty ¶
func (s *Session) AssertOutputsEmpty()
func (*Session) Create ¶
func (s *Session) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)
func (*Session) List ¶
func (s *Session) List(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.Sources, error)
type Store ¶
type Store struct { NewSessionInvocations int NewSessionStub func() dataSourceStoreStructured.Session NewSessionOutputs []dataSourceStoreStructured.Session NewSessionOutput *dataSourceStoreStructured.Session }
func (*Store) AssertOutputsEmpty ¶
func (s *Store) AssertOutputsEmpty()
func (*Store) NewSession ¶
func (s *Store) NewSession() dataSourceStoreStructured.Session
type UpdateInput ¶
type UpdateOutput ¶
type UpdateOutput struct { Source *dataSource.Source Error error }
Click to show internal directories.
Click to hide internal directories.