Documentation
¶
Index ¶
- type DeleteInput
- type DeleteOutput
- type ExistsInput
- type ExistsOutput
- type GetInput
- type GetOutput
- type PutInput
- type Store
- func (s *Store) AssertOutputsEmpty()
- func (s *Store) Delete(ctx context.Context, userID string, id string) (bool, error)
- func (s *Store) Exists(ctx context.Context, userID string, id string) (bool, error)
- func (s *Store) Get(ctx context.Context, userID string, id string) (io.ReadCloser, error)
- func (s *Store) Put(ctx context.Context, userID string, id string, reader io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteOutput ¶
type ExistsOutput ¶
type GetOutput ¶
type GetOutput struct {
Reader io.ReadCloser
Error error
}
type Store ¶
type Store struct {
ExistsInvocations int
ExistsInputs []ExistsInput
ExistsStub func(ctx context.Context, userID string, id string) (bool, error)
ExistsOutputs []ExistsOutput
ExistsOutput *ExistsOutput
PutInvocations int
PutInputs []PutInput
PutStub func(ctx context.Context, userID string, id string, reader io.Reader) error
PutOutputs []error
PutOutput *error
GetInvocations int
GetInputs []GetInput
GetStub func(ctx context.Context, userID string, id string) (io.ReadCloser, error)
GetOutputs []GetOutput
GetOutput *GetOutput
DeleteInvocations int
DeleteInputs []DeleteInput
DeleteStub func(ctx context.Context, userID string, id string) (bool, error)
DeleteOutputs []DeleteOutput
DeleteOutput *DeleteOutput
}
func (*Store) AssertOutputsEmpty ¶
func (s *Store) AssertOutputsEmpty()
Click to show internal directories.
Click to hide internal directories.