chore: linter: embeddedstructfieldcheck
Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
// A cachedFinder is a Finder with associated cache timeouts.
|
||||
type cachedFinder struct {
|
||||
Finder
|
||||
|
||||
cacheTime time.Duration
|
||||
negCacheTime time.Duration
|
||||
cache *cache
|
||||
|
||||
@@ -32,6 +32,8 @@ import (
|
||||
)
|
||||
|
||||
type globalClient struct {
|
||||
errorHolder
|
||||
|
||||
server string
|
||||
addrList AddressLister
|
||||
announceClient httpClient
|
||||
@@ -39,7 +41,6 @@ type globalClient struct {
|
||||
noAnnounce bool
|
||||
noLookup bool
|
||||
evLogger events.Logger
|
||||
errorHolder
|
||||
}
|
||||
|
||||
type httpClient interface {
|
||||
@@ -373,6 +374,7 @@ func queryBool(q url.Values, key string) bool {
|
||||
|
||||
type idCheckingHTTPClient struct {
|
||||
httpClient
|
||||
|
||||
id protocol.DeviceID
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ import (
|
||||
|
||||
type localClient struct {
|
||||
*suture.Supervisor
|
||||
*cache
|
||||
|
||||
myID protocol.DeviceID
|
||||
addrList AddressLister
|
||||
name string
|
||||
@@ -43,8 +45,6 @@ type localClient struct {
|
||||
localBcastStart time.Time
|
||||
localBcastTick <-chan time.Time
|
||||
forcedBcastTick chan time.Time
|
||||
|
||||
*cache
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
@@ -41,6 +41,7 @@ type Manager interface {
|
||||
|
||||
type manager struct {
|
||||
*suture.Supervisor
|
||||
|
||||
myID protocol.DeviceID
|
||||
cfg config.Wrapper
|
||||
cert tls.Certificate
|
||||
|
||||
Reference in New Issue
Block a user