Documentation ¶
Overview ¶
Package web is a web dashboard
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "web" Address = ":8082" Namespace = "micro" Resolver = "path" LoginURL = "/login" ACMEProvider = "autocert" ACMEChallengeProvider = "cloudflare" ACMECA = acme.LetsEncryptProductionCA // Host name the web dashboard is served on Host, _ = os.Hostname() // Token cookie name TokenCookieName = "micro-token" )
Meta Fields of micro web
Functions ¶
func NewRPCHandler ¶
NewRPCHandler returns an initialized RPC handler
Types ¶
type WebResolver ¶
type WebResolver struct { // Options Options resolver.Options // selector to choose from a pool of nodes // Selector selector.Selector // router to lookup routes Router router.Router }
func (*WebResolver) Resolve ¶
func (r *WebResolver) Resolve(req *http.Request, opts ...res.ResolveOption) (*res.Endpoint, error)
Resolve replaces the values of Host, Path, Scheme to calla backend service It accounts for subdomains for service names based on namespace
func (*WebResolver) String ¶
func (r *WebResolver) String() string
Click to show internal directories.
Click to hide internal directories.