Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(s *Server)
Option configures the Server.
func WithAuth ¶
func WithAuth(auth func(ctx context.Context) grpc.CallOption) Option
WithAuth overrides the Server's auth func.
func WithRegistry ¶
func WithRegistry(registry ttnpb.GatewayRegistryClient) Option
WithRegistry overrides the Server's gateway registry.
func WithTheThingsGatewayConfig ¶
func WithTheThingsGatewayConfig(config TheThingsGatewayConfig) Option
WithTheThingsGatewayConfig overrides the Server's configuration for The Things Gateway.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the CUPS endpoints used by The Things Gateway.
func (*Server) RegisterRoutes ¶
RegisterRoutes implements the web.Registerer interface.
type TheThingsGatewayConfig ¶
type TheThingsGatewayConfig struct { Default struct { UpdateChannel string `name:"update-channel" description:"The default update channel that the gateways should use"` MQTTServer string `name:"mqtt-server" description:"The default MQTT server that the gateways should use"` FirmwareURL string `name:"firmware-url" description:"The default URL to the firmware storage"` } `name:"default" description:"Default gateway settings"` }
TheThingsGatewayConfig is the configuration for The Things Gateway.
Click to show internal directories.
Click to hide internal directories.