sbi

package
v0.0.0-...-ae4e76f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddService

func AddService(group *gin.RouterGroup, routes []Route)

func Index

func Index(c *gin.Context)

Index is the index handler.

func URILengthLimiter

func URILengthLimiter() gin.HandlerFunc

Types

type EIR

type EIR interface {
	app.App

	Processor() *processor.Processor
}

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) Config

func (m *MockEIR) Config() *factory.Config

Config mocks base method.

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) Processor

func (m *MockEIR) Processor() *processor.Processor

Processor mocks base method.

func (*MockEIR) SetLogEnable

func (m *MockEIR) SetLogEnable(enable bool)

SetLogEnable mocks base method.

func (*MockEIR) SetLogLevel

func (m *MockEIR) SetLogLevel(level string)

SetLogLevel mocks base method.

func (*MockEIR) SetReportCaller

func (m *MockEIR) SetReportCaller(reportCaller bool)

SetReportCaller mocks base method.

func (*MockEIR) Start

func (m *MockEIR) Start()

Start mocks base method.

func (*MockEIR) Terminate

func (m *MockEIR) Terminate()

Terminate 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
}

func NewServer

func NewServer(eir EIR, tlsKeyLogPath string) *Server

func (*Server) HandleQueryEirEquipmentStatus

func (s *Server) HandleQueryEirEquipmentStatus(c *gin.Context)

func (*Server) Run

func (s *Server) Run(wg *sync.WaitGroup)

func (*Server) Shutdown

func (s *Server) Shutdown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL