Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Iss *url.URL Logger logrus.FieldLogger OnReady func(*Server) OnStatus func(*Server) APIBaseURI *url.URL Domains []string PreferredDomainBases []string DAgentListenAddress string SMTPLocalAddr string StatePath string LicensesPath string }
Config bundles configuration settings.
type DomainsClaims ¶
type DomainsClaims struct { Domains []string `json:"domains"` // contains filtered or unexported fields }
type Route ¶ added in v0.0.4
type Route struct {
// contains filtered or unexported fields
}
func (*Route) Data ¶ added in v0.0.4
func (*Route) Mail ¶ added in v0.0.4
type RouteMeta ¶
type RouteMeta struct { Domain string `json:"domain"` ID string `json:"id"` Expiry *jwt.NumericDate `json:"exp"` }
type RouteStatus ¶
type Server ¶
Server is our HTTP server implementation.
func NewServer ¶
NewServer constructs a server from the provided parameters.
func (*Server) GetRoute ¶ added in v0.0.4
func (*Server) Logger ¶ added in v0.1.0
func (server *Server) Logger() logrus.FieldLogger
func (*Server) Mail ¶ added in v0.0.4
func (*Server) Serve ¶
Serve starts all the accociated servers resources and listeners and blocks forever until signals or error occurs.
type Status ¶ added in v0.1.0
type Status struct { sync.RWMutex HTTPProviderURL string `json:"provider_url"` HTTPConnected bool `json:"provider_connected"` HTTPLicenseLIDs []string `json:"provider_license_ids"` SessionID *string `json:"session_id"` Domains []string `json:"domains"` Expiration *time.Time `json:"exp"` }
func (*Status) SetDomainsClaims ¶ added in v0.1.0
func (status *Status) SetDomainsClaims(domainsClaims *DomainsClaims) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.