Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BldrClient ¶
BldrClient holds the config for the bldr oauth2 client.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds the server state
func New ¶
func New( l logger.Logger, migrationConfig *migration.Config, oidcCfg oidc.Config, bldrClient *BldrClient, signInURL *url.URL, serviceCerts *certs.ServiceCerts) (*Server, error)
New returns a new instance of the server
func NewInMemory ¶
func NewInMemory( l logger.Logger, remainingDuration time.Duration, oidcCfg oidc.Config, signInURL *url.URL, bldrClient *BldrClient, serviceCerts *certs.ServiceCerts) (*Server, error)
NewInMemory instantiates a memory-backed instance of the server, to be used for testing.
func (*Server) ListenAndServe ¶
ListenAndServe starts a listener, and serves requests using Server's embedded http.ServeMux. Only ever returns with non-nil error.
Click to show internal directories.
Click to hide internal directories.