Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIGatewayPath = "/api/" StaticHomepagePath = "/" StaticProtobufPath = "/protobuf/" StaticSwaggerPath = "/swagger/" StaticSwaggerUIPath = "/swagger-ui/" StaticSwaggerUIPrefix = "swagger-ui" AccessControlAllowHeaders = "Access-Control-Allow-Headers" AccessControlAllowMethods = "Access-Control-Allow-Methods" AccessControlAllowOrigin = "Access-Control-Allow-Origin" AccessControlRequestMethod = "Access-Control-Request-Method" HTTPMethodOptions = "OPTIONS" HTTPHeaderContentType = "Content-Type" JSONContentType = "application/json" JSONFileExtension = ".json" OriginHeaderKey = "Origin" PreFlightHeaderAccept = "Accept" PreFlightHeaderAuthorization = "Authorization" PreFlightHeaderContentType = HTTPHeaderContentType PreFlightMethodDelete = "DELETE" PreFlightMethodGet = "GET" PreFlightMethodHead = "HEAD" PreFlightMethodPost = "POST" PreFlightMethodPut = "PUT" SVGContentType = "image/svg+xml" SVGFileExtension = ".svg" WebhookContentType = "application/raw-webhook" WebhookPath = "webhook" LogPreFlightNoticeMessage = "preflight request for" LogPreFlightNoticeURL = "url" LogRegisteringGRPCAddress = "grpcAddress" LogRegisteringGRPCMessage = "registering grpc server" LogRegisteringHomepageHandler = "registering homepage handler (/)" LogRegisteringProtobufHandler = "registering protobuf handler (/protobuf/)" LogRegisteringSwaggerHandler = "registering protobuf handler (/swagger/)" LogRegisteringSwaggerUIHandler = "registering protobuf handler (/swagger-ui/)" LogStartingServerListAddress = "listenAddress" LogStartingServerMessage = "starting server" )
View Source
const (
LoggingPackageName = "internal.apiserver.rest"
)
Variables ¶
View Source
var ( PreFlightHeaders = []string{PreFlightHeaderAccept, PreFlightHeaderAuthorization, PreFlightHeaderContentType} PreFlightMethods = []string{PreFlightMethodDelete, PreFlightMethodGet, PreFlightMethodHead, PreFlightMethodPost, PreFlightMethodPut} )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface {
Serve()
}
func New ¶
func New(inputConfig ServerConfiguration) Server
type ServerConfiguration ¶
Click to show internal directories.
Click to hide internal directories.