Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppListEntry ¶
type AppListEntry struct { App string `json:"app"` Endpoint string `json:"endpoint"` Peer string `json:"peer"` }
AppListEntry represents an entry on app list
type ConsentGatherer ¶
type ConsentGatherer struct {
// contains filtered or unexported fields
}
ConsentGatherer is a mediator between ServerAcceptor and HTTP server that is used to accept or reject the requests
func NewConsentGatherer ¶
func NewConsentGatherer() *ConsentGatherer
NewConsentGatherer creates ConsentGatherer instances
type ServerAcceptor ¶
type ServerAcceptor struct {
// contains filtered or unexported fields
}
ServerAcceptor implements Acceptor by waiting for the user to manually accept the public key
func NewServerAcceptor ¶
func NewServerAcceptor(gatherer *ConsentGatherer) *ServerAcceptor
NewServerAcceptor creates ServerAcceptor instances
type WormholeAdminServer ¶
type WormholeAdminServer struct {
// contains filtered or unexported fields
}
WormholeAdminServer is a separate HTTP server, that allows managing wormhole using API
func NewWormholeAdminServer ¶
func NewWormholeAdminServer( addr string, appList appLister, gatherer *ConsentGatherer, ) *WormholeAdminServer
NewWormholeAdminServer creates WormholeAdminServer instances
func (*WormholeAdminServer) Listen ¶
func (apiServer *WormholeAdminServer) Listen() error
Listen starts the server
Click to show internal directories.
Click to hide internal directories.