fieldaligment

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-04-26 23:13:23 +03:00
parent 00a4785df3
commit 6dfdff7fd8
5 changed files with 8 additions and 9 deletions

View File

@ -19,8 +19,8 @@ func NewResolver(parent resolver.Resolver, opts ...resolver.Option) resolver.Res
} }
type subdomainResolver struct { type subdomainResolver struct {
opts resolver.Options
resolver.Resolver resolver.Resolver
opts resolver.Options
} }
// Resolve resolve endpoint based on subdomain // Resolve resolve endpoint based on subdomain

View File

@ -22,8 +22,8 @@ type Option func(*Options)
type Options struct { type Options struct {
Meter meter.Meter Meter meter.Meter
MeterOptions []meter.Option
Name string Name string
MeterOptions []meter.Option
} }
func Meter(m meter.Meter) Option { func Meter(m meter.Meter) Option {

View File

@ -31,18 +31,18 @@ type memoryClient struct {
} }
type memoryListener struct { type memoryListener struct {
topts Options
ctx context.Context
lopts ListenOptions lopts ListenOptions
ctx context.Context
exit chan bool exit chan bool
conn chan *memorySocket conn chan *memorySocket
addr string addr string
topts Options
sync.RWMutex sync.RWMutex
} }
type memoryTransport struct { type memoryTransport struct {
opts Options
listeners map[string]*memoryListener listeners map[string]*memoryListener
opts Options
sync.RWMutex sync.RWMutex
} }

View File

@ -12,16 +12,16 @@ import (
) )
type tunBroker struct { type tunBroker struct {
opts broker.Options
tunnel tunnel.Tunnel tunnel tunnel.Tunnel
opts broker.Options
} }
type tunSubscriber struct { type tunSubscriber struct {
opts broker.SubscribeOptions
listener tunnel.Listener listener tunnel.Listener
handler broker.Handler handler broker.Handler
closed chan bool closed chan bool
topic string topic string
opts broker.SubscribeOptions
} }
type tunEvent struct { type tunEvent struct {

View File

@ -10,9 +10,8 @@ import (
) )
type tunTransport struct { type tunTransport struct {
options transport.Options
tunnel tunnel.Tunnel tunnel tunnel.Tunnel
options transport.Options
} }
type tunnelKey struct{} type tunnelKey struct{}