Documentation
¶
Index ¶
- func SetName(name string)
- type App
- func (a *App) Close()
- func (a *App) Info() *Info
- func (a *App) Logger() *zap.Logger
- func (a *App) Router() chi.Router
- func (a *App) Run(impl ...transport.Service) error
- func (a *App) TraceLogger() tracelog.Logger
- func (a *App) Tracer() *tracing.Tracer
- func (a *App) WithRunOptions(opts ...app.RunOption) *App
- type Info
- type Option
- type RunOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) TraceLogger ¶
type Option ¶
func AddLogCaller ¶
func AddLogCaller() Option
AddLogCaller configures the Logger to annotate each message with the filename and line number of zap's caller. See also WithCaller.
func AddLogStacktrace ¶
AddLogStacktrace configures the Logger to record a stack trace for all messages at or above a given level.
func WithAdminHTTP ¶
func WithExitSignals ¶
func WithLogField ¶
WithLogField adds field to the Logger.
func WithPublicGRPc ¶
func WithPublicHTTP ¶
type RunOption ¶
func WithTLSConfig ¶
func WithTLSKeyPair ¶
func WithUnaryInterceptor ¶
func WithUnaryInterceptor(interceptor grpc.UnaryServerInterceptor) RunOption
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
protoc-gen-tron
module
|
|
|
tron
module
|
|
|
example
module
|
|
|
internal
|
|
|
admin
Package swagger generated by go-bindata.// sources: data/favicon-16x16.png data/favicon-32x32.png data/index.html data/oauth2-redirect.html data/swagger-ui-bundle.js data/swagger-ui-standalone-preset.js data/swagger-ui.css data/swagger-ui.js
|
Package swagger generated by go-bindata.// sources: data/favicon-16x16.png data/favicon-32x32.png data/index.html data/oauth2-redirect.html data/swagger-ui-bundle.js data/swagger-ui-standalone-preset.js data/swagger-ui.css data/swagger-ui.js |
Click to show internal directories.
Click to hide internal directories.