Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateServer(endpoint *Endpoint, ttl uint64) error
- func (c *Client) RegisterBackend(endpoint *Endpoint) error
- func (c *Client) RegisterFrontend(location *Location) error
- func (c *Client) RegisterMiddleware(location *Location) error
- func (c *Client) UpdateServer(endpoint *Endpoint, ttl uint64) error
- func (c *Client) UpsertServer(endpoint *Endpoint, ttl uint64) error
- type Config
- type Endpoint
- type Location
- type LocationOptions
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Key string // contains filtered or unexported fields }
func (*Client) RegisterBackend ¶
func (*Client) RegisterFrontend ¶
func (*Client) RegisterMiddleware ¶
type Endpoint ¶
func NewEndpointWithID ¶
func (*Endpoint) BackendSpec ¶
func (*Endpoint) ServerSpec ¶
type Location ¶
type Location struct { ID string Host string Path string URLPath string Methods []string Upstream string Options LocationOptions Middlewares []middleware.Middleware }
func NewLocation ¶
func NewLocation(host string, methods []string, path, upstream string, middlewares []middleware.Middleware) *Location
type LocationOptions ¶
type LocationOptions struct {
FailoverPredicate string `json:"FailoverPredicate"`
}
func (LocationOptions) String ¶
func (o LocationOptions) String() string
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) RegisterBackend ¶
func (*Registry) RegisterEndpoint ¶
func (*Registry) RegisterFrontend ¶
func (*Registry) RegisterLocation ¶
RegisterLocation registers a provided location in vulcan.
func (*Registry) RegisterServer ¶
Click to show internal directories.
Click to hide internal directories.