Documentation ¶
Index ¶
- Constants
- func Provide(vvmCtx context.Context, rp RouterParams, aBusTimeout time.Duration, ...) (httpSrv IHTTPService, acmeSrv IACMEService)
- func RequestHandler(bus ibus.IBus, busTimeout time.Duration, ...) http.HandlerFunc
- func WriteTextResponse(w http.ResponseWriter, msg string, code int)
- type BLOBMaxSizeType
- type BlobberParams
- type BlobberServiceChannels
- type IACMEService
- type IHTTPService
- type RouterParams
Constants ¶
View Source
const ( HTTPSPort = 443 DefaultACMEServerReadTimeout = 5 * time.Second DefaultACMEServerWriteTimeout = 5 * time.Second DefaultPort = 8822 DefaultConnectionsLimit = 10000 DefaultRouterReadTimeout = 15 DefaultRouterWriteTimeout = 15 WSID = "wsid" AppOwner = "appOwner" AppName = "appName" ResourceName = "resourceName" )
Variables ¶
This section is empty.
Functions ¶
func Provide ¶
func Provide(vvmCtx context.Context, rp RouterParams, aBusTimeout time.Duration, broker in10n.IN10nBroker, bp *BlobberParams, autocertCache autocert.Cache, bus ibus.IBus, numsAppsWorkspaces map[istructs.AppQName]istructs.NumAppWorkspaces) (httpSrv IHTTPService, acmeSrv IACMEService)
port == 443 -> httpsService + ACMEService, otherwise -> HTTPService only, ACMEService is nil
func RequestHandler ¶
func RequestHandler(bus ibus.IBus, busTimeout time.Duration, numsAppsWorkspaces map[istructs.AppQName]istructs.NumAppWorkspaces) http.HandlerFunc
func WriteTextResponse ¶
func WriteTextResponse(w http.ResponseWriter, msg string, code int)
Types ¶
type BLOBMaxSizeType ¶
type BLOBMaxSizeType int64
type BlobberParams ¶
type BlobberParams struct { ServiceChannels []iprocbusmem.ChannelGroup BLOBStorage iblobstorage.IBLOBStorage BLOBWorkersNum int RetryAfterSecondsOn503 int BLOBMaxSize BLOBMaxSizeType // contains filtered or unexported fields }
type BlobberServiceChannels ¶
type BlobberServiceChannels []iprocbusmem.ChannelGroup
type IACMEService ¶
type IHTTPService ¶
type RouterParams ¶
type RouterParams struct { Port int WriteTimeout int ReadTimeout int ConnectionsLimit int HTTP01ChallengeHosts []string CertDir string RouteDefault string // http://10.0.0.3:3000/not-found : https://alpha.dev.untill.ru/unknown/foo -> http://10.0.0.3:3000/not-found/unknown/foo Routes map[string]string // /grafana=http://10.0.0.3:3000 : https://alpha.dev.untill.ru/grafana/foo -> http://10.0.0.3:3000/grafana/foo RoutesRewrite map[string]string // /grafana-rewrite=http://10.0.0.3:3000/rewritten : https://alpha.dev.untill.ru/grafana-rewrite/foo -> http://10.0.0.3:3000/rewritten/foo RouteDomains map[string]string // resellerportal.dev.untill.ru=http://resellerportal : https://resellerportal.dev.untill.ru/foo -> http://resellerportal/foo }
Click to show internal directories.
Click to hide internal directories.