Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerManager ¶ added in v0.1.2
type ServerManager struct {
// contains filtered or unexported fields
}
ServerManager manages the API server run by the daemon
func NewServerManager ¶ added in v0.1.2
func NewServerManager(sp swcommon.IStakeWiseServiceProvider, ip string, port uint16, stopWg *sync.WaitGroup, authMgr *auth.AuthorizationManager) (*ServerManager, error)
Creates a new server manager
func (*ServerManager) GetPort ¶ added in v1.0.0
func (m *ServerManager) GetPort() uint16
Returns the port the server is running on
func (*ServerManager) Stop ¶ added in v0.1.2
func (m *ServerManager) Stop()
Stops and shuts down the servers
Click to show internal directories.
Click to hide internal directories.