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 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
Click to show internal directories.
Click to hide internal directories.