Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Close()
- func (_m *Repository) CreateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
- func (_m *Repository) DeleteBackend(ctx context.Context, id string) error
- func (_m *Repository) GetBackend(ctx context.Context, id string) (*model.Backend, error)
- func (_m *Repository) ListBackend(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Backend, error)
- func (_m *Repository) UpdateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) Close ¶
func (_m *Repository) Close()
Close provides a mock function with given fields:
func (*Repository) CreateBackend ¶
func (_m *Repository) CreateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
CreateBackend provides a mock function with given fields: ctx, backend
func (*Repository) DeleteBackend ¶
func (_m *Repository) DeleteBackend(ctx context.Context, id string) error
DeleteBackend provides a mock function with given fields: ctx, id
func (*Repository) GetBackend ¶
GetBackend provides a mock function with given fields: ctx, id
func (*Repository) ListBackend ¶
func (_m *Repository) ListBackend(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Backend, error)
ListBackend provides a mock function with given fields: ctx, limit, offset, query
func (*Repository) UpdateBackend ¶
func (_m *Repository) UpdateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
UpdateBackend provides a mock function with given fields: ctx, backend
Click to show internal directories.
Click to hide internal directories.