Documentation
¶
Index ¶
- type Http
- func (t *Http) Init(app interfaces.IEngine) error
- func (t *Http) PushRoute(method string, path string, handler interfaces.RouteFunc, middlewares []string)
- func (t *Http) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (t *Http) Start() error
- func (t *Http) Stop() error
- func (t *Http) String() string
- type HttpConfig
- type Kafka
- type KafkaConfig
- type Mock
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Http ¶
type Http struct {
Name string
Config HttpConfig
// contains filtered or unexported fields
}
func NewHttp ¶ added in v0.0.9
func NewHttp(name string, cfg HttpConfig) *Http
type HttpConfig ¶ added in v0.0.9
type Kafka ¶ added in v0.0.9
type Kafka struct {
Name string
Config KafkaConfig
// contains filtered or unexported fields
}
func NewKafka ¶ added in v0.0.9
func NewKafka(name string, cfg KafkaConfig) *Kafka
type KafkaConfig ¶ added in v0.0.9
type Mock ¶
type Mock struct {
Name string
RouteRegister func(router *Router)
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.