Documentation ¶
Overview ¶
Package app contains base application constants, flags and options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InstanceUUID = uuid.New() StartTime = time.Now() ServiceName = "-" AppName = "-" GitHash = "-" Version = "-" BuildAt = "0001-01-01T00:00:00" )
Functions ¶
This section is empty.
Types ¶
type Info ¶ added in v0.2.0
type Info struct { InstanceUUID string ServiceName string AppName string GitHash string Version string BuildAt string StartTime time.Time }
Info contains service information.
type Options ¶
type Options struct { // New options. Hostname string PortAdmin uint16 PortHTTP uint16 PortGRPC uint16 LoggerOptions []zap.Option LoggerConfig zap.Config TracerConfig *tracing.Configuration ExitSignals []os.Signal GRPCListener net.Listener HTTPListener net.Listener // Run options. TLSConfig *tls.Config GRPCOptions []grpc.ServerOption // contains filtered or unexported fields }
Options is base tron options.
func NewOptions ¶
NewOptions returns Options with applied Option list.
func (*Options) AddRunOptions ¶ added in v0.2.0
AddRunOptions append run options to others options.
func (*Options) ApplyRunOptions ¶
ApplyRunOptions sets run options.
Click to show internal directories.
Click to hide internal directories.