Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRouter ¶
type APIRouter struct {
Mux *chi.Mux
Address string
Config *configs.ParameterConfig
DBHandle *drivers.DBHandle
Handlers *Handler
}
APIRouter the svc map
func NewAPIRouter ¶
NewAPIRouter service new instance
func (*APIRouter) GetHandlers ¶
GetHandlers is the mapping of all the handlers
type Setup ¶
type Setup func(*APIRouter)
Setup options settings
func WithSvcOptConfig ¶
func WithSvcOptConfig(c *configs.ParameterConfig) Setup
WithSvcOptConfig opts for mux
func WithSvcOptHandler ¶
WithSvcOptHandler opts for handler
Click to show internal directories.
Click to hide internal directories.