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 {
opts resolver.Options
resolver.Resolver
opts resolver.Options
}
// Resolve resolve endpoint based on subdomain

View File

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

View File

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

View File

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

View File

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