Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewHTTPServer, NewGRPCServer, NewRocketMqConsumerServer)
ProviderSet is user providers.
Functions ¶
func MqRecovery ¶
func MqRecovery(fn func(ctx context.Context, msgs ...*primitive.MessageExt) (consumer.ConsumeResult, error)) func(ctx context.Context, msgs ...*primitive.MessageExt) (consumer.ConsumeResult, error)
func NewGRPCServer ¶
func NewHTTPServer ¶
func NewHTTPServer(c *conf.Server, messageService *service.MessageService, logger log.Logger) *http.Server
NewHTTPServer new a HTTP user.
Types ¶
type RocketMqConsumerServer ¶ added in v1.3.0
type RocketMqConsumerServer struct {
// contains filtered or unexported fields
}
func NewRocketMqConsumerServer ¶ added in v1.3.0
func NewRocketMqConsumerServer(conf *conf.Server, messageService *service.MessageService, logger log.Logger) *RocketMqConsumerServer
Click to show internal directories.
Click to hide internal directories.