Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiHandlerMock ¶
type ApiHandlerMock struct { ServeHTTPCall struct { Receives struct { Res http.ResponseWriter Req *http.Request } } }
func (ApiHandlerMock) ServeHTTP ¶
func (api ApiHandlerMock) ServeHTTP(res http.ResponseWriter, req *http.Request)
type ContextProviderMock ¶
type ContextProviderMock struct { }
Stupid minimal mock needed to fulfill a contract
func (ContextProviderMock) ContextFromRequest ¶
func (c ContextProviderMock) ContextFromRequest(req *http.Request) context.Context
type LoggerMock ¶
type LoggerMock struct { }
Stupid minimal mock needed to fulfill a contract
func (*LoggerMock) Debugf ¶
func (*LoggerMock) Debugf(ctx context.Context, format string, v ...interface{})
type TokenExtractor ¶
type UserStore ¶
type UserStore struct { Store struct { Users []gitserver.User } UpdateUserCall struct { Receives struct { Ctx context.Context User *gitserver.User } Returns struct { Err error } } LookupUserCall struct { Receives struct { Ctx context.Context ID string } Returns struct { Err error } } }
func (*UserStore) LookupUser ¶
Click to show internal directories.
Click to hide internal directories.