Back to / pkg / gatewayconfigurationserver

Package gatewayconfigurationserver

Latest Go to latest

The latest major version is v3.

Published: Feb 6, 2020 | License: Apache-2.0 | Module:


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 GatewayConfigurationServer

type GatewayConfigurationServer struct {
	// contains filtered or unexported fields

GatewayConfigurationServer implements the Gateway Configuration Server component.

func New

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

New returns new *GatewayConfigurationServer.

func (*GatewayConfigurationServer) RegisterHandlers

func (gcs *GatewayConfigurationServer) RegisterHandlers(_ *runtime.ServeMux, _ *grpc.ClientConn)

RegisterHandlers registers gRPC handlers.

func (*GatewayConfigurationServer) RegisterRoutes

func (gcs *GatewayConfigurationServer) RegisterRoutes(server *web.Server)

RegisterRoutes registers the web frontend routes.

func (*GatewayConfigurationServer) RegisterServices

func (gcs *GatewayConfigurationServer) RegisterServices(_ *grpc.Server)

RegisterServices registers services provided by gcs at s.

func (*GatewayConfigurationServer) Roles

func (gcs *GatewayConfigurationServer) Roles() []ttnpb.ClusterRole

Roles returns the roles that the Gateway Configuration Server fulfills.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier