Documentation
¶
Index ¶
- func AddService(group *gin.RouterGroup, routes []Route)
- func Index(c *gin.Context)
- func URILengthLimiter() gin.HandlerFunc
- type EIR
- type MockEIR
- func (m *MockEIR) Config() *factory.Config
- func (m *MockEIR) Context() *context.EIRContext
- func (m *MockEIR) EXPECT() *MockEIRMockRecorder
- func (m *MockEIR) Processor() *processor.Processor
- func (m *MockEIR) SetLogEnable(enable bool)
- func (m *MockEIR) SetLogLevel(level string)
- func (m *MockEIR) SetReportCaller(reportCaller bool)
- func (m *MockEIR) Start()
- func (m *MockEIR) Terminate()
- type MockEIRMockRecorder
- func (mr *MockEIRMockRecorder) Config() *gomock.Call
- func (mr *MockEIRMockRecorder) Context() *gomock.Call
- func (mr *MockEIRMockRecorder) Processor() *gomock.Call
- func (mr *MockEIRMockRecorder) SetLogEnable(enable interface{}) *gomock.Call
- func (mr *MockEIRMockRecorder) SetLogLevel(level interface{}) *gomock.Call
- func (mr *MockEIRMockRecorder) SetReportCaller(reportCaller interface{}) *gomock.Call
- func (mr *MockEIRMockRecorder) Start() *gomock.Call
- func (mr *MockEIRMockRecorder) Terminate() *gomock.Call
- type Route
- type RouteGroup
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddService ¶
func AddService(group *gin.RouterGroup, routes []Route)
func URILengthLimiter ¶
func URILengthLimiter() gin.HandlerFunc
Types ¶
type MockEIR ¶
type MockEIR struct {
// contains filtered or unexported fields
}
MockEIR is a mock of EIR interface.
func NewMockEIR ¶
func NewMockEIR(ctrl *gomock.Controller) *MockEIR
NewMockEIR creates a new mock instance.
func (*MockEIR) Context ¶
func (m *MockEIR) Context() *context.EIRContext
Context mocks base method.
func (*MockEIR) EXPECT ¶
func (m *MockEIR) EXPECT() *MockEIRMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEIR) SetLogEnable ¶
SetLogEnable mocks base method.
func (*MockEIR) SetLogLevel ¶
SetLogLevel mocks base method.
func (*MockEIR) SetReportCaller ¶
SetReportCaller mocks base method.
type MockEIRMockRecorder ¶
type MockEIRMockRecorder struct {
// contains filtered or unexported fields
}
MockEIRMockRecorder is the mock recorder for MockEIR.
func (*MockEIRMockRecorder) Config ¶
func (mr *MockEIRMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockEIRMockRecorder) Context ¶
func (mr *MockEIRMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockEIRMockRecorder) Processor ¶
func (mr *MockEIRMockRecorder) Processor() *gomock.Call
Processor indicates an expected call of Processor.
func (*MockEIRMockRecorder) SetLogEnable ¶
func (mr *MockEIRMockRecorder) SetLogEnable(enable interface{}) *gomock.Call
SetLogEnable indicates an expected call of SetLogEnable.
func (*MockEIRMockRecorder) SetLogLevel ¶
func (mr *MockEIRMockRecorder) SetLogLevel(level interface{}) *gomock.Call
SetLogLevel indicates an expected call of SetLogLevel.
func (*MockEIRMockRecorder) SetReportCaller ¶
func (mr *MockEIRMockRecorder) SetReportCaller(reportCaller interface{}) *gomock.Call
SetReportCaller indicates an expected call of SetReportCaller.
func (*MockEIRMockRecorder) Start ¶
func (mr *MockEIRMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockEIRMockRecorder) Terminate ¶
func (mr *MockEIRMockRecorder) Terminate() *gomock.Call
Terminate indicates an expected call of Terminate.
type Route ¶
type Route struct {
// Name is the name of this Route.
Name string
// Method is the string for the HTTP method. ex) GET, POST etc..
Method string
// Pattern is the pattern of the URI.
Pattern string
// HandlerFunc is the handler function of this route.
HandlerFunc gin.HandlerFunc
}
Route is the information for every URI.
type RouteGroup ¶
type RouteGroup interface {
AddService(engine *gin.Engine) *gin.RouterGroup
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}