Documentation ¶
Overview ¶
Package ops encapsulates the lifecycle of Boundary's ops-purpose listeners and servers: Creating, setting them up, starting and shutdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a collection of all state required to serve multiple ops endpoints through a single object.
func NewServer ¶
func NewServer(l hclog.Logger, c *controller.Controller, listeners ...*base.ServerListener) (*Server, error)
NewServer iterates through all the listeners and sets up HTTP Servers for each, along with individual handlers. If Controller is set-up, NewServer will set-up a health endpoint for it.
func (*Server) Shutdown ¶
Shutdown attempts to cleanly shutdown all running ops listeners and HTTP servers.
Click to show internal directories.
Click to hide internal directories.