Documentation
¶
Index ¶
- type Grpc
- type GrpcConfig
- 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 Rabbitmq
- func (t *Rabbitmq) Handle(msg amqp.Delivery)
- func (t *Rabbitmq) Init(app interfaces.IEngine) error
- func (t *Rabbitmq) PushRoute(method string, path string, handler interfaces.RouteFunc, middlewares []string)
- func (t *Rabbitmq) Start() error
- func (t *Rabbitmq) Stop() error
- func (t *Rabbitmq) String() string
- type RabbitmqConfig
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grpc ¶ added in v0.3.0
type Grpc struct {
Name string
Config GrpcConfig
// contains filtered or unexported fields
}
func NewGrpc ¶ added in v0.3.0
func NewGrpc(name string, cfg GrpcConfig) *Grpc
func (*Grpc) RegisterService ¶ added in v0.3.0
func (t *Grpc) RegisterService(desc *grpc.ServiceDesc, impl any)
type GrpcConfig ¶ added in v0.3.0
type GrpcConfig struct {
Port string `yaml:"port"`
}
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 Rabbitmq ¶ added in v0.6.0
type Rabbitmq struct {
Name string
Config RabbitmqConfig
// contains filtered or unexported fields
}
func NewRabbitmq ¶ added in v0.6.0
func NewRabbitmq(name string, cfg RabbitmqConfig) *Rabbitmq
type RabbitmqConfig ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.