Component is a base component for The Things Network cluster
| 54 | |
| 55 | // Component is a base component for The Things Network cluster |
| 56 | type Component struct { |
| 57 | ctx context.Context |
| 58 | cancelCtx context.CancelFunc |
| 59 | terminationSignals chan os.Signal |
| 60 | |
| 61 | config *Config |
| 62 | getBaseConfig func(ctx context.Context) config.ServiceBase |
| 63 | |
| 64 | acme *autocert.Manager |
| 65 | |
| 66 | logger log.Stack |
| 67 | |
| 68 | cluster cluster.Cluster |
| 69 | clusterNew func(ctx context.Context, config *cluster.Config, options ...cluster.Option) (cluster.Cluster, error) |
| 70 | |
| 71 | GRPC *rpcserver.Server |
| 72 | grpcLogger log.Interface |
| 73 | grpcSubsystems []rpcserver.Registerer |
| 74 | |
| 75 | web *web.Server |
| 76 | webSubsystems []web.Registerer |
| 77 | |
| 78 | interop *interop.Server |
| 79 | interopSubsystems []interop.Registerer |
| 80 | |
| 81 | healthHandler healthcheck.HealthChecker |
| 82 | |
| 83 | loopback *grpc.ClientConn |
| 84 | |
| 85 | tcpListeners map[string]*listener |
| 86 | tcpListenersMu sync.Mutex |
| 87 | |
| 88 | fillers []fillcontext.Filler |
| 89 | |
| 90 | frequencyPlans *frequencyplans.Store |
| 91 | |
| 92 | componentKEKLabeler crypto.ComponentKEKLabeler |
| 93 | keyService crypto.KeyService |
| 94 | |
| 95 | rightsFetcher rights.Fetcher |
| 96 | |
| 97 | taskStarter task.Starter |
| 98 | taskConfigs []*task.Config |
| 99 | |
| 100 | caStore *mtls.CAStore |
| 101 | |
| 102 | limiter ratelimit.Interface |
| 103 | } |
| 104 | |
| 105 | // Option allows extending the component when it is instantiated with New. |
| 106 | type Option func(*Component) |
nothing calls this directly
no outgoing calls
no test coverage detected