Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
HttpServer handles the REST API requests in each node and redirects it to the local Node, where is the logic's core.
func NewServer ¶
func NewServer(port int) *HttpServer
NewServer creates a new API HttpServer that receives the requests for the local node.
func (*HttpServer) Start ¶
func (server *HttpServer) Start(node LocalNode) error
Start initializes the endpoints and starts the http web server.
type LocalNode ¶
type LocalNode interface { configuration.Configurations containers.Containers discovery.Discovery scheduling.Scheduling user.User }
LocalNode exposes all the necessary functionality, of the local node, for the REST API web server.
Directories
¶
Path | Synopsis |
---|---|
Client package provides a client that allows to interact with the a CARAVELA's daemon sending the requests to it.
|
Client package provides a client that allows to interact with the a CARAVELA's daemon sending the requests to it. |
Types package includes all the structures shared between the caravela's server/daemon and its clients.
|
Types package includes all the structures shared between the caravela's server/daemon and its clients. |
Click to show internal directories.
Click to hide internal directories.