Documentation ¶
Overview ¶
Package justgo is a generated GoMock package.
Index ¶
- Variables
- func AddRoute(method string, pattern string, handler http.HandlerFunc, ...)
- func AlwaysUseMiddleware(middleWares ...func(handler http.Handler) http.Handler)
- func GetInstrument() *instrument
- func GetLogger() *justGoLog
- func GetRouter() http.Handler
- func Initialise()
- func InstantiateNewRouter()
- func NewSentryHook(dsn string, level []logrus.Level) (*sentryHook, error)
- func RegisterInterface(appInterface AppInterface)
- func RunAppInterfaces()
- func Start()
- func WaitForShutdown()
- type AppInterface
- type CliCommand
- type CliInterface
- type DB
- type HttpInterface
- type Metric
- type MockAppInterface
- type MockAppInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *config
View Source
var ConfigKey configKey
View Source
var DEFAULT_CONFIGS = map[string]string{}
Functions ¶
func AlwaysUseMiddleware ¶
func GetInstrument ¶ added in v1.4.2
func GetInstrument() *instrument
func Initialise ¶ added in v1.1.1
func Initialise()
func InstantiateNewRouter ¶
func InstantiateNewRouter()
func NewSentryHook ¶ added in v1.2.0
func RegisterInterface ¶
func RegisterInterface(appInterface AppInterface)
func RunAppInterfaces ¶ added in v1.3.0
func RunAppInterfaces()
func WaitForShutdown ¶ added in v1.3.0
func WaitForShutdown()
Types ¶
type AppInterface ¶ added in v1.3.0
type AppInterface interface { Serve() ShutDown() }
type CliCommand ¶ added in v1.3.0
type CliInterface ¶ added in v1.3.0
type CliInterface struct { Address string // contains filtered or unexported fields }
func (*CliInterface) AddCommand ¶ added in v1.3.0
func (cli *CliInterface) AddCommand(command string, function CliCommand)
func (*CliInterface) Serve ¶ added in v1.3.0
func (cli *CliInterface) Serve()
func (*CliInterface) ShutDown ¶ added in v1.3.0
func (cli *CliInterface) ShutDown()
type HttpInterface ¶
func GetDefaultHttpInterface ¶ added in v1.3.0
func GetDefaultHttpInterface() *HttpInterface
func (HttpInterface) Serve ¶
func (httpInterface HttpInterface) Serve()
func (HttpInterface) ShutDown ¶ added in v1.3.0
func (httpInterface HttpInterface) ShutDown()
type MockAppInterface ¶ added in v1.4.2
type MockAppInterface struct {
// contains filtered or unexported fields
}
MockAppInterface is a mock of AppInterface interface
func NewMockAppInterface ¶ added in v1.4.2
func NewMockAppInterface(ctrl *gomock.Controller) *MockAppInterface
NewMockAppInterface creates a new mock instance
func (*MockAppInterface) EXPECT ¶ added in v1.4.2
func (m *MockAppInterface) EXPECT() *MockAppInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAppInterface) Serve ¶ added in v1.4.2
func (m *MockAppInterface) Serve()
Serve mocks base method
func (*MockAppInterface) ShutDown ¶ added in v1.4.2
func (m *MockAppInterface) ShutDown()
ShutDown mocks base method
type MockAppInterfaceMockRecorder ¶ added in v1.4.2
type MockAppInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockAppInterfaceMockRecorder is the mock recorder for MockAppInterface
func (*MockAppInterfaceMockRecorder) Serve ¶ added in v1.4.2
func (mr *MockAppInterfaceMockRecorder) Serve() *gomock.Call
Serve indicates an expected call of Serve
func (*MockAppInterfaceMockRecorder) ShutDown ¶ added in v1.4.2
func (mr *MockAppInterfaceMockRecorder) ShutDown() *gomock.Call
ShutDown indicates an expected call of ShutDown
Source Files ¶
Click to show internal directories.
Click to hide internal directories.