Documentation ¶
Index ¶
- Constants
- Variables
- type Adapter
- func (mongo *Adapter) CreateForwardTest(ctx context.Context, ft forwardtest.ForwardTest) error
- func (a *Adapter) CreateIndexes() error
- func (mongo *Adapter) DeleteForwardTest(ctx context.Context, id uuid.UUID) error
- func (mongo *Adapter) ListForwardTests(ctx context.Context, filters db.ListFilters) ([]forwardtest.ForwardTest, error)
- func (mongo *Adapter) ReadForwardTest(ctx context.Context, id uuid.UUID) (forwardtest.ForwardTest, error)
- func (a *Adapter) Reset(ctx context.Context) error
- func (mongo *Adapter) UpdateForwardTest(ctx context.Context, ft forwardtest.ForwardTest) error
Constants ¶
View Source
const (
// CollectionName is the name of the collection in the database
CollectionName = "forwardtests"
)
Variables ¶
View Source
var ( // ErrNilID is returned when the ID is nil ErrNilID = fmt.Errorf("ID is nil") )
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) CreateForwardTest ¶
func (mongo *Adapter) CreateForwardTest(ctx context.Context, ft forwardtest.ForwardTest) error
func (*Adapter) CreateIndexes ¶
func (*Adapter) DeleteForwardTest ¶
func (*Adapter) ListForwardTests ¶
func (mongo *Adapter) ListForwardTests(ctx context.Context, filters db.ListFilters) ([]forwardtest.ForwardTest, error)
func (*Adapter) ReadForwardTest ¶
func (mongo *Adapter) ReadForwardTest(ctx context.Context, id uuid.UUID) (forwardtest.ForwardTest, error)
func (*Adapter) UpdateForwardTest ¶
func (mongo *Adapter) UpdateForwardTest(ctx context.Context, ft forwardtest.ForwardTest) error
Click to show internal directories.
Click to hide internal directories.