mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-23 21:44:41 +02:00
fix: struct field alignment (#2632)
This commit is contained in:
@@ -14,41 +14,48 @@ import (
|
||||
|
||||
// Options for web.
|
||||
type Options struct {
|
||||
Name string
|
||||
Version string
|
||||
Id string
|
||||
Metadata map[string]string
|
||||
Address string
|
||||
Advertise string
|
||||
|
||||
Action func(*cli.Context)
|
||||
Flags []cli.Flag
|
||||
|
||||
RegisterTTL time.Duration
|
||||
RegisterInterval time.Duration
|
||||
|
||||
// RegisterCheck runs a check function before registering the service
|
||||
RegisterCheck func(context.Context) error
|
||||
|
||||
Server *http.Server
|
||||
Handler http.Handler
|
||||
|
||||
Logger logger.Logger
|
||||
|
||||
Service micro.Service
|
||||
|
||||
Registry registry.Registry
|
||||
|
||||
// Alternative Options
|
||||
Context context.Context
|
||||
|
||||
Registry registry.Registry
|
||||
Service micro.Service
|
||||
Logger logger.Logger
|
||||
Action func(*cli.Context)
|
||||
Metadata map[string]string
|
||||
TLSConfig *tls.Config
|
||||
|
||||
Server *http.Server
|
||||
|
||||
// RegisterCheck runs a check function before registering the service
|
||||
RegisterCheck func(context.Context) error
|
||||
|
||||
Version string
|
||||
|
||||
// Static directory
|
||||
StaticDir string
|
||||
|
||||
Advertise string
|
||||
|
||||
Address string
|
||||
Name string
|
||||
Id string
|
||||
Flags []cli.Flag
|
||||
|
||||
Secure bool
|
||||
TLSConfig *tls.Config
|
||||
BeforeStart []func() error
|
||||
BeforeStop []func() error
|
||||
AfterStart []func() error
|
||||
AfterStop []func() error
|
||||
|
||||
// Static directory
|
||||
StaticDir string
|
||||
RegisterInterval time.Duration
|
||||
|
||||
RegisterTTL time.Duration
|
||||
|
||||
Secure bool
|
||||
|
||||
Signal bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user