 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( // EndpointControl represents the control endpoint accessible via unix socket. EndpointControl = iota // EndpointNetwork represents the user endpoint accessible over https (on a different port to the user endpoint). EndpointNetwork )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint interface {
	Listen() error
	Serve()
	Close() error
	Type() EndpointType
}
    Endpoint represents the common methods of an Endpoint.
type EndpointType ¶
type EndpointType int
EndpointType enumerates the supported endpoints.
func (EndpointType) String ¶
func (et EndpointType) String() string
String labels EndpointTypes for logging purposes.
type Endpoints ¶
type Endpoints struct {
	// contains filtered or unexported fields
}
    Endpoints represents all listeners and servers for the microcluster daemon REST API.
func NewEndpoints ¶
NewEndpoints aggregates the given endpoints so we can manage them from one source.
func (*Endpoints) Add ¶
Add calls Serve on the additional set of listeners, and adds them to Endpoints.
func (*Endpoints) Down ¶
func (e *Endpoints) Down(types ...EndpointType) error
Down closes all of the configured listeners, or any for the type specifically supplied.
type Network ¶
type Network struct {
	// contains filtered or unexported fields
}
    Network represents an HTTPS listener and its server.
 Click to show internal directories. 
   Click to hide internal directories.