Versions in this module Expand all Collapse all v0 v0.0.1 Feb 27, 2025 Changes in this version + type App struct + func New(name, port string) *App + func (app *App) Addr() string + func (app *App) Build() (*App, error) + func (app *App) Ctx() *router.Ctx + func (app *App) Database() *database.DB + func (app *App) Elastic() *elastic.Elastic + func (app *App) GRPCServer() *grpc.Server + func (app *App) Logger() *logger.Logger + func (app *App) RegisterService(s Service) + func (app *App) Run() error + func (app *App) SetHTTPTimeout(timeout time.Duration) + func (app *App) Stop() error + func (app *App) Store() *store.Store + func (app *App) WithDatabase(db *database.DB, tables ...interface{}) *App + func (app *App) WithElastic(addr string) *App + func (app *App) WithGRPCServer(port string, timeout ...time.Duration) *App + func (app *App) WithOpenTelemetry(url string) *App + func (app *App) WithStore() *App + type Service interface + RegisterHandlers func(r *router.Server) + type TestApp struct + func NewTestApp(t *testing.T) *TestApp + func (tapp *TestApp) Build() (*TestApp, error) + func (tapp *TestApp) Ctx() *router.Ctx + func (tapp *TestApp) Database() *database.DB + func (tapp *TestApp) Elastic() *elastic.Elastic + func (tapp *TestApp) Endpoint() string + func (tapp *TestApp) GRPCAddr() string + func (tapp *TestApp) GRPCServer() *grpc.Server + func (tapp *TestApp) Logger() *logger.Logger + func (tapp *TestApp) RegisterService(s Service) + func (tapp *TestApp) RunTests(tests ...func(t *testing.T, tapp *TestApp)) error + func (tapp *TestApp) Store() *store.Store + func (tapp *TestApp) Teardown() + func (tapp *TestApp) WithDatabase(tables ...interface{}) *TestApp + func (tapp *TestApp) WithElastic() *TestApp + func (tapp *TestApp) WithGRPCServer(port string, timeout ...time.Duration) *TestApp + func (tapp *TestApp) WithStore() *TestApp