Documentation ¶ Index ¶ type Mock func NewMockService(store models.MockStore, log *zap.Logger) *Mock func (m *Mock) FileExists(ctx context.Context, path string) bool func (m *Mock) GetAll(ctx context.Context, path string, name string) ([]models.Mock, error) func (m *Mock) Put(ctx context.Context, path string, doc models.Mock, meta interface{}) error type Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Mock ¶ type Mock struct { // contains filtered or unexported fields } func NewMockService ¶ func NewMockService(store models.MockStore, log *zap.Logger) *Mock func (*Mock) FileExists ¶ added in v0.5.2 func (m *Mock) FileExists(ctx context.Context, path string) bool func (*Mock) GetAll ¶ added in v0.5.0 func (m *Mock) GetAll(ctx context.Context, path string, name string) ([]models.Mock, error) func (*Mock) Put ¶ func (m *Mock) Put(ctx context.Context, path string, doc models.Mock, meta interface{}) error type Service ¶ type Service interface { Put(ctx context.Context, path string, doc models.Mock, meta interface{}) error GetAll(ctx context.Context, path string, name string) ([]models.Mock, error) FileExists(ctx context.Context, path string) bool } Source Files ¶ View all Source files mock.go service.go Click to show internal directories. Click to hide internal directories.