Documentation
¶
Index ¶
- type 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
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GRPCServer ¶
func (*App) RegisterService ¶
func (*App) SetHTTPTimeout ¶
func (*App) WithDatabase ¶
func (*App) WithElastic ¶
func (*App) WithGRPCServer ¶
func (*App) WithOpenTelemetry ¶
type TestApp ¶
type TestApp struct {
// contains filtered or unexported fields
}
func NewTestApp ¶
func (*TestApp) GRPCServer ¶
func (*TestApp) RegisterService ¶
func (*TestApp) WithDatabase ¶
func (*TestApp) WithElastic ¶
func (*TestApp) WithGRPCServer ¶
Click to show internal directories.
Click to hide internal directories.