Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertApplication ¶
func AssertApplication()
Types ¶
type Application ¶
type Application struct { Core *kratos.App Register registry.RegisterDiscover HTTPSrv *http.Server GrpcSrv *grpc.Server Config *config.Config Producer mq.Producer Redis *redisv8.Client Consumer []mq.Consumer // contains filtered or unexported fields }
Application is a common app entry. All apps can use this Application as a base entry and add own fields and methods in their own app packages.
func InitApplication ¶
func InitApplication(opts ...Option) (*Application, error)
func (*Application) AddConsumer ¶
func (a *Application) AddConsumer(c mq.Consumer)
func (*Application) GetHost ¶ added in v0.0.5
func (a *Application) GetHost() string
func (*Application) Run ¶
func (a *Application) Run() error
Click to show internal directories.
Click to hide internal directories.