Versions in this module Expand all Collapse all v0 v0.1.1 Mar 8, 2020 v0.1.0 Mar 8, 2020 Changes in this version + const LoginEvent + const SignupEvent + const ValidateEvent + func SafeHTTPClient(client *http.Client, log logrus.FieldLogger) *http.Client + func SafeRoundtripper(trans http.RoundTripper, log logrus.FieldLogger) http.RoundTripper + func WithInstanceConfig(ctx context.Context, config *conf.Configuration, instanceID uuid.UUID) (context.Context, error) + type API struct + func NewAPI(globalConfig *conf.GlobalConfiguration, db *storage.Connection) *API + func NewAPIFromConfigFile(filename string, version string) (*API, *conf.Configuration, error) + func NewAPIWithVersion(ctx context.Context, globalConfig *conf.GlobalConfiguration, ...) *API + func (a *API) CreateInstance(w http.ResponseWriter, r *http.Request) error + func (a *API) DeleteInstance(w http.ResponseWriter, r *http.Request) error + func (a *API) ExternalProviderCallback(w http.ResponseWriter, r *http.Request) error + func (a *API) ExternalProviderRedirect(w http.ResponseWriter, r *http.Request) error + func (a *API) GetAppManifest(w http.ResponseWriter, r *http.Request) error + func (a *API) GetInstance(w http.ResponseWriter, r *http.Request) error + func (a *API) HealthCheck(w http.ResponseWriter, r *http.Request) error + func (a *API) Invite(w http.ResponseWriter, r *http.Request) error + func (a *API) ListenAndServe(hostAndPort string) + func (a *API) Logout(w http.ResponseWriter, r *http.Request) error + func (a *API) Mailer(ctx context.Context) mailer.Mailer + func (a *API) OAuthProvider(ctx context.Context, name string) (provider.OAuthProvider, error) + func (a *API) Provider(ctx context.Context, name string) (provider.Provider, error) + func (a *API) Recover(w http.ResponseWriter, r *http.Request) error + func (a *API) RefreshTokenGrant(ctx context.Context, w http.ResponseWriter, r *http.Request) error + func (a *API) ResourceOwnerPasswordGrant(ctx context.Context, w http.ResponseWriter, r *http.Request) error + func (a *API) SAMLMetadata(w http.ResponseWriter, r *http.Request) error + func (a *API) Settings(w http.ResponseWriter, r *http.Request) error + func (a *API) Signup(w http.ResponseWriter, r *http.Request) error + func (a *API) Token(w http.ResponseWriter, r *http.Request) error + func (a *API) UpdateInstance(w http.ResponseWriter, r *http.Request) error + func (a *API) UserGet(w http.ResponseWriter, r *http.Request) error + func (a *API) UserUpdate(w http.ResponseWriter, r *http.Request) error + func (a *API) Verify(w http.ResponseWriter, r *http.Request) error + type AccessTokenResponse struct + ExpiresIn int + RefreshToken string + Token string + TokenType string + type DelivcClaims struct + AppMetaData map[string]interface{} + Email string + UserMetaData map[string]interface{} + type DelivcMicroserviceClaims struct + DelivcID string + FunctionHooks map[string]string + InstanceID string + SiteURL string + type ErrorCause interface + Cause func() error + type ExternalProviderClaims struct + InviteToken string + Provider string + Referrer string + type ExternalSignupParams struct + Code string + Provider string + type HTTPError struct + Code int + ErrorID string + InternalError error + InternalMessage string + Message string + func (e *HTTPError) Cause() error + func (e *HTTPError) Error() string + func (e *HTTPError) WithInternalError(err error) *HTTPError + func (e *HTTPError) WithInternalMessage(fmtString string, args ...interface{}) *HTTPError + type HookEvent string + type InstanceRequestParams struct + BaseConfig *conf.Configuration + UUID uuid.UUID + type InstanceResponse struct + Endpoint string + State string + type InviteParams struct + Data map[string]interface{} + Email string + type OAuthError struct + Description string + Err string + InternalError error + InternalMessage string + func (e *OAuthError) Cause() error + func (e *OAuthError) Error() string + func (e *OAuthError) WithInternalError(err error) *OAuthError + func (e *OAuthError) WithInternalMessage(fmtString string, args ...interface{}) *OAuthError + type ProviderLabels struct + SAML string + type ProviderSettings struct + Bitbucket bool + Email bool + Facebook bool + GitHub bool + GitLab bool + Google bool + SAML bool + type RecoverParams struct + Email string + type Settings struct + Autoconfirm bool + DisableSignup bool + ExternalLabels ProviderLabels + ExternalProviders ProviderSettings + type SignupParams struct + Aud string + Data map[string]interface{} + Email string + Password string + Provider string + type UserUpdateParams struct + AppData map[string]interface{} + Data map[string]interface{} + Email string + EmailChangeToken string + Password string + type VerifyParams struct + Password string + Token string + Type string + type Webhook struct + type WebhookResponse struct + AppMetaData map[string]interface{} + UserMetaData map[string]interface{}