Versions in this module Expand all Collapse all v3 v3.7.3 Apr 29, 2020 Changes in this version + var TaskBackoffDial = []time.Duration + type Component struct + FrequencyPlans *frequencyplans.Store + KeyVault crypto.KeyVault + func MustNew(logger log.Stack, config *Config, opts ...Option) *Component + func New(logger log.Stack, config *Config, opts ...Option) (c *Component, err error) + func (c *Component) AddContextFiller(f fillcontext.Filler) + func (c *Component) AllowInsecureForCredentials() bool + func (c *Component) ClaimIDs(ctx context.Context, ids ttnpb.Identifiers) error + func (c *Component) Close() + func (c *Component) ClusterAuthStreamHook() hooks.StreamHandlerMiddleware + func (c *Component) ClusterAuthUnaryHook() hooks.UnaryHandlerMiddleware + func (c *Component) ClusterTLS() bool + func (c *Component) Context() context.Context + func (c *Component) FillContext(ctx context.Context) context.Context + func (c *Component) GetBaseConfig(ctx context.Context) config.ServiceBase + func (c *Component) GetPeer(ctx context.Context, role ttnpb.ClusterRole, ids ttnpb.Identifiers) (cluster.Peer, error) + func (c *Component) GetPeerConn(ctx context.Context, role ttnpb.ClusterRole, ids ttnpb.Identifiers) (*grpc.ClientConn, error) + func (c *Component) GetPeers(ctx context.Context, role ttnpb.ClusterRole) ([]cluster.Peer, error) + func (c *Component) GetTLSClientConfig(ctx context.Context, opts ...TLSConfigOption) (*tls.Config, error) + func (c *Component) GetTLSServerConfig(ctx context.Context, opts ...TLSConfigOption) (*tls.Config, error) + func (c *Component) ListenTCP(address string) (Listener, error) + func (c *Component) ListenUDP(address string) (*net.UDPConn, error) + func (c *Component) LogDebug() bool + func (c *Component) Logger() log.Stack + func (c *Component) LoopbackConn() *grpc.ClientConn + func (c *Component) RegisterGRPC(s rpcserver.Registerer) + func (c *Component) RegisterInterop(s interop.Registerer) + func (c *Component) RegisterLivenessCheck(name string, check healthcheck.Check) + func (c *Component) RegisterReadinessCheck(name string, check healthcheck.Check) + func (c *Component) RegisterTask(ctx context.Context, id string, fn TaskFunc, restart TaskRestart, ...) + func (c *Component) RegisterWeb(s web.Registerer) + func (c *Component) Run() error + func (c *Component) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (c *Component) Start() (err error) + func (c *Component) StartTask(ctx context.Context, id string, fn TaskFunc, restart TaskRestart, ...) + func (c *Component) UnclaimIDs(ctx context.Context, ids ttnpb.Identifiers) error + func (c *Component) WithClusterAuth() grpc.CallOption + type Config struct + type ConfigurationServer struct + func NewConfigurationServer(c *Component) *ConfigurationServer + func (c *ConfigurationServer) ListFrequencyPlans(ctx context.Context, req *ttnpb.ListFrequencyPlansRequest) (*ttnpb.ListFrequencyPlansResponse, error) + func (c *ConfigurationServer) RegisterHandlers(s *runtime.ServeMux, conn *grpc.ClientConn) + func (c *ConfigurationServer) RegisterServices(s *grpc.Server) + func (c *ConfigurationServer) Roles() []ttnpb.ClusterRole + type Endpoint interface + Address func() string + Listen func(Listener) (net.Listener, error) + Protocol func() string + func NewTCPEndpoint(address, protocol string) Endpoint + func NewTLSEndpoint(address, protocol string, configOpts ...TLSConfigOption) Endpoint + type Listener interface + Addr func() net.Addr + Close func() error + TCP func() (net.Listener, error) + TLS func(opts ...TLSConfigOption) (net.Listener, error) + type Option func(*Component) + func WithBaseConfigGetter(f func(ctx context.Context) config.ServiceBase) Option + func WithClusterNew(...) Option + type TLSConfigOption interface + func WithNextProtos(protos ...string) TLSConfigOption + func WithTLSClientAuth(auth tls.ClientAuthType, cas *x509.CertPool, ...) TLSConfigOption + type TLSConfigOptionFunc func(*tls.Config) + type TaskFunc func(context.Context) error + type TaskRestart int + const TaskRestartAlways + const TaskRestartNever + const TaskRestartOnFailure