Documentation ¶
Index ¶
- func FromTemplate(ctx context.Context, tplData TplData) ([]byte, error)
- func ResolveSites(ctx context.Context, resolver routing.UpstreamsResolver, external bool) ([]byte, []string, error)
- type ActiveSite
- type RawServer
- func (s *RawServer) Clone() interface{}
- func (s *RawServer) Endpoints() []string
- func (s *RawServer) ID() string
- func (s *RawServer) Metadata() map[string]string
- func (s *RawServer) Name() string
- func (s *RawServer) RootContext() context.Context
- func (s *RawServer) SetMetadata(meta map[string]string)
- func (s *RawServer) Type() server.Type
- type TplData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveSites ¶
func ResolveSites(ctx context.Context, resolver routing.UpstreamsResolver, external bool) ([]byte, []string, error)
ResolveSites generates a Caddyfile using routing.ResolveProxy with custom resolvers
Types ¶
type ActiveSite ¶
type ActiveSite struct { *routing.ActiveProxy // Final resolve with mux or reverse proxy MuxMode bool // LogFile for this site Log string // LogLevel for this site LogLevel string }
type RawServer ¶
type RawServer struct { routing.RouteRegistrar // contains filtered or unexported fields }
RawServer partially implements server.RawServer interface to be used by various caddy implementations
func (*RawServer) RootContext ¶
func (*RawServer) SetMetadata ¶
Click to show internal directories.
Click to hide internal directories.