gatewayconfigurationserver

package
v3.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// BasicStation defines the configuration for the BasicStation CUPS.
	BasicStation bscups.ServerConfig `name:"basic-station" description:"BasicStation CUPS configuration."`
	// TheThingsGateway defines the configuration for The Things Gateway CUPS.
	TheThingsGateway gcsv2.TheThingsGatewayConfig `name:"the-things-gateway" description:"The Things Gateway CUPS configuration."`
	// RequreAuth defines if the HTTP endpoints should require authentication or not.
	RequireAuth bool `name:"require-auth" description:"Require authentication for the HTTP endpoints."`
}

Config contains the Gateway Configuration Server configuration.

type Server added in v3.8.2

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

Server implements the Gateway Configuration Server component.

func New

func New(c *component.Component, conf *Config) (*Server, error)

New returns new *Server.

func (*Server) RegisterHandlers added in v3.8.2

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

RegisterHandlers registers gRPC handlers.

func (*Server) RegisterRoutes added in v3.8.2

func (s *Server) RegisterRoutes(server *web.Server)

RegisterRoutes registers the web frontend routes.

func (*Server) RegisterServices added in v3.8.2

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

RegisterServices registers services provided by gcs at s.

func (*Server) Roles added in v3.8.2

func (s *Server) Roles() []ttnpb.ClusterRole

Roles returns the roles that the Gateway Configuration Server fulfills.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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