managed

package
v3.32.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package managed implements the API gateway for The Things Gateway Controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	Context() context.Context
	GetBaseConfig(context.Context) config.ServiceBase
	GRPCServer() *rpcserver.Server
	GetPeerConn(ctx context.Context, role ttnpb.ClusterRole, ids cluster.EntityIdentifiers) (*grpc.ClientConn, error)
	AllowInsecureForCredentials() bool
	GetTLSClientConfig(context.Context, ...tlsconfig.Option) (*tls.Config, error)
}

Component is the component interface required for this package.

type Server

type Server struct {
	Component
	// contains filtered or unexported fields
}

Server implements provides configuration services for managed gateways via The Things Gateway Controller.

func New

func New(ctx context.Context, c Component, conf ttgc.Config) (*Server, error)

New returns a new Server.

func (*Server) RegisterHandlers

func (s *Server) RegisterHandlers(mux *runtime.ServeMux, conn *grpc.ClientConn)

RegisterHandlers registers gRPC handlers.

func (*Server) RegisterServices

func (s *Server) RegisterServices(grpcServer *grpc.Server)

RegisterServices registers services provided by gcs at s.

Directories

Path Synopsis
Package client implements a managed gateway client.
Package client implements a managed gateway client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL