Documentation ¶
Index ¶
- type Config
- type Server
- func (s *Server) GetGatewayConfiguration(ctx context.Context, req *ttnpb.GetGatewayConfigurationRequest) (*ttnpb.GetGatewayConfigurationResponse, error)
- func (s *Server) RegisterHandlers(mux *runtime.ServeMux, conn *grpc.ClientConn)
- func (s *Server) RegisterRoutes(server *web.Server)
- func (s *Server) RegisterServices(grpcServer *grpc.Server)
- func (*Server) Roles() []ttnpb.ClusterRole
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."` // TheThingsKickstarterGateway defines the configuration for The Things Kickstarter Gateway. TheThingsKickstarterGateway ttkg.Config `name:"the-things-gateway" description:"The Things Kickstarter Gateway configuration."` //nolint:lll // 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 { ttnpb.UnimplementedGatewayConfigurationServiceServer *component.Component // contains filtered or unexported fields }
Server implements the Gateway Configuration Server component.
func (*Server) GetGatewayConfiguration ¶ added in v3.18.1
func (s *Server) GetGatewayConfiguration(ctx context.Context, req *ttnpb.GetGatewayConfigurationRequest) (*ttnpb.GetGatewayConfigurationResponse, error)
GetGatewayConfiguration validates the request fields and returns the appropriate gateway configuration
func (*Server) RegisterHandlers ¶ added in v3.8.2
func (s *Server) RegisterHandlers(mux *runtime.ServeMux, conn *grpc.ClientConn)
RegisterHandlers registers gRPC handlers.
func (*Server) RegisterRoutes ¶ added in v3.8.2
RegisterRoutes registers the web frontend routes.
The gateway configuration value returned by the `grpc-gateway` routes are not content formatted, but a stream of bytes. This would be a breaking change for the consumers of this API and hence these routes are retained.
func (*Server) RegisterServices ¶ added in v3.8.2
RegisterServices registers services provided by gcs at s.
func (*Server) Roles ¶ added in v3.8.2
func (*Server) Roles() []ttnpb.ClusterRole
Roles returns the roles that the Gateway Configuration Server fulfills.