1
0
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:
Lukasz Raczylo
2023-04-26 00:16:34 +00:00
committed by GitHub
parent 0f9b2f00c9
commit a7522e7d6c
113 changed files with 694 additions and 637 deletions

View File

@@ -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
}