Documentation ¶
Overview ¶
Package document is a generated GoMock package.
Index ¶
- type API
- type Document
- type MockStore
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetAll(arg0 context.Context) ([]*Document, error)
- func (m *MockStore) GetOne(arg0 context.Context, arg1 int64) (*Document, error)
- func (m *MockStore) Insert(arg0 context.Context, arg1 *Document) (int64, error)
- func (m *MockStore) Update(arg0 context.Context, arg1 int64, arg2, arg3 string) error
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetOne(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type SQLStore
- func (s *SQLStore) GetAll(ctx context.Context) ([]*Document, error)
- func (s *SQLStore) GetOne(ctx context.Context, id int64) (*Document, error)
- func (s *SQLStore) Insert(ctx context.Context, d *Document) (int64, error)
- func (s *SQLStore) Update(ctx context.Context, id int64, field string, value string) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetAllHandler ¶
func (api *API) GetAllHandler(w http.ResponseWriter, r *http.Request)
func (*API) GetOneHandler ¶
func (api *API) GetOneHandler(w http.ResponseWriter, r *http.Request)
func (*API) InsertHandler ¶
func (api *API) InsertHandler(w http.ResponseWriter, r *http.Request)
func (*API) UpdateHandler ¶
func (api *API) UpdateHandler(w http.ResponseWriter, r *http.Request)
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) GetAll ¶
func (mr *MockStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockStoreMockRecorder) GetOne ¶
func (mr *MockStoreMockRecorder) GetOne(arg0, arg1 interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockStoreMockRecorder) Insert ¶
func (mr *MockStoreMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockStoreMockRecorder) Update ¶
func (mr *MockStoreMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Update indicates an expected call of Update.
Click to show internal directories.
Click to hide internal directories.