Versions in this module Expand all Collapse all v0 v0.1.1 Mar 6, 2025 Changes in this version type Option + func WithScanConfig[T any](c *T) Option v0.1.0 Mar 4, 2025 Changes in this version + func RunMustHttpServer(app *App, register func(e *gin.Engine, a *Options)) + func RunMustRpcServer(app *App, register func(server *grpc.Server, app *Options)) + type App struct + func New(opts ...Option) *App + func (a *App) Run() error + func (a *App) Stop() + type Option func(o *Options) + func WithAppID(id string) Option + func WithEndpoints(endpoints []*url.URL) Option + func WithGinServer(router func(e *gin.Engine, a *Options)) Option + func WithGrpcServer(svr func(s *grpc.Server, a *Options)) Option + func WithLogger() Option + func WithMustConfig[T any](filename string, fn func(cfg *conf.ServiceConfig[T])) Option + func WithMustDB() Option + func WithMustLocalCache() Option + func WithMustRedis() Option + func WithRegistrar(registrar registry.ServiceRegistrar) Option + func WithSignal(sigs []os.Signal) Option + type Options struct + func (o *Options) AppID() string + func (o *Options) Conf() *conf.Basic + func (o Options) DB() *db.DBManager + func (o Options) LocalCache() cache.Cache + func (o Options) Redis() redis.UniversalClient