Documentation ¶
Index ¶
- func AuthRequiredMiddleware() echo.MiddlewareFunc
- func ContextMiddleware(fn func(ctx context.Context) context.Context) echo.MiddlewareFunc
- func ExportLayer() echo.HandlerFunc
- func GraphqlAPI(conf GraphQLConfig, dev bool) echo.HandlerFunc
- func PasswordReset() echo.HandlerFunc
- func Ping() echo.HandlerFunc
- func PublishedAuthMiddleware() echo.MiddlewareFunc
- func PublishedData() echo.HandlerFunc
- func PublishedIndex() echo.HandlerFunc
- func PublishedMetadata() echo.HandlerFunc
- func Signup() echo.HandlerFunc
- func SignupVerify() echo.HandlerFunc
- func Start(debug bool, version string)
- func StartSignupVerify() echo.HandlerFunc
- func UsecaseMiddleware(r *repo.Container, g *gateway.Container, config interactor.ContainerConfig) echo.MiddlewareFunc
- type Auth0Config
- type AuthConfig
- type AuthConfigs
- type AuthSrvConfig
- type AuthSrvDNConfig
- type Config
- type GCSConfig
- type GraphQLConfig
- type Logger
- func (l *Logger) Debug(i ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugj(j log.JSON)
- func (l *Logger) Error(i ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorj(j log.JSON)
- func (l *Logger) Fatal(i ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalj(j log.JSON)
- func (l *Logger) Hook() echo.MiddlewareFunc
- func (l *Logger) Info(i ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infoj(j log.JSON)
- func (l *Logger) Level() log.Lvl
- func (l *Logger) Output() io.Writer
- func (l *Logger) Panic(i ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicj(j log.JSON)
- func (l *Logger) Prefix() string
- func (l *Logger) Print(i ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Printj(j log.JSON)
- func (l *Logger) SetHeader(_ string)
- func (l *Logger) SetLevel(lvl log.Lvl)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetPrefix(s string)
- func (l *Logger) Warn(i ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warnj(j log.JSON)
- type MultiValidator
- type PublishedConfig
- type SMTPConfig
- type SendGridConfig
- type ServerConfig
- type WebConfig
- type WebServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRequiredMiddleware ¶ added in v0.6.0
func AuthRequiredMiddleware() echo.MiddlewareFunc
func ContextMiddleware ¶ added in v0.6.0
func ExportLayer ¶ added in v0.6.0
func ExportLayer() echo.HandlerFunc
func GraphqlAPI ¶ added in v0.6.0
func GraphqlAPI( conf GraphQLConfig, dev bool, ) echo.HandlerFunc
func PasswordReset ¶ added in v0.6.0
func PasswordReset() echo.HandlerFunc
func PublishedAuthMiddleware ¶
func PublishedAuthMiddleware() echo.MiddlewareFunc
func PublishedData ¶
func PublishedData() echo.HandlerFunc
func PublishedIndex ¶
func PublishedIndex() echo.HandlerFunc
func PublishedMetadata ¶ added in v0.6.0
func PublishedMetadata() echo.HandlerFunc
func SignupVerify ¶ added in v0.6.0
func SignupVerify() echo.HandlerFunc
func StartSignupVerify ¶ added in v0.6.0
func StartSignupVerify() echo.HandlerFunc
func UsecaseMiddleware ¶ added in v0.6.0
func UsecaseMiddleware(r *repo.Container, g *gateway.Container, config interactor.ContainerConfig) echo.MiddlewareFunc
Types ¶
type Auth0Config ¶
type Auth0Config struct { Domain string Audience string ClientID string ClientSecret string WebClientID string }
func (Auth0Config) AuthConfig ¶ added in v0.6.0
func (c Auth0Config) AuthConfig() *AuthConfig
type AuthConfig ¶ added in v0.6.0
type AuthConfigs ¶ added in v0.6.0
type AuthConfigs []AuthConfig
func (*AuthConfigs) Decode ¶ added in v0.6.0
func (ipd *AuthConfigs) Decode(value string) error
Decode is a custom decoder for AuthConfigs
type AuthSrvConfig ¶ added in v0.6.0
type AuthSrvConfig struct { Dev bool Disabled bool Domain string UIDomain string Key string DN *AuthSrvDNConfig }
func (AuthSrvConfig) AuthConfig ¶ added in v0.6.0
func (c AuthSrvConfig) AuthConfig(debug bool, host string) *AuthConfig
type AuthSrvDNConfig ¶ added in v0.6.0
type Config ¶
type Config struct { Port string `default:"8080" envconfig:"PORT"` ServerHost string Host string `default:"http://localhost:8080"` Host_Web string Dev bool DB string `default:"mongodb://localhost"` Mailer string SMTP SMTPConfig SendGrid SendGridConfig GraphQL GraphQLConfig Published PublishedConfig GCPProject string `envconfig:"GOOGLE_CLOUD_PROJECT"` Profiler string Tracer string TracerSample float64 GCS GCSConfig AssetBaseURL string `default:"http://localhost:8080/assets"` Origins []string Web WebConfig SignupSecret string SignupDisabled bool // auth Auth AuthConfigs Auth0 Auth0Config AuthSrv AuthSrvConfig Auth_ISS string Auth_AUD string Auth_ALG *string Auth_TTL *int Auth_ClientID *string }
func ReadConfig ¶
func (Config) AuthServeDomainURL ¶ added in v0.6.0
func (Config) AuthServeUIDomainURL ¶ added in v0.6.0
func (Config) Auths ¶ added in v0.6.0
func (c Config) Auths() (res []AuthConfig)
func (Config) HostWebURL ¶ added in v0.6.0
type GraphQLConfig ¶
type GraphQLConfig struct {
ComplexityLimit int `default:"6000"`
}
type Logger ¶
type Logger struct{}
Logrus : implement Logger
func (*Logger) Hook ¶
func (l *Logger) Hook() echo.MiddlewareFunc
Hook is a function to process middleware.
type MultiValidator ¶ added in v0.6.0
func NewMultiValidator ¶ added in v0.6.0
func NewMultiValidator(providers []AuthConfig) (MultiValidator, error)
func (MultiValidator) ValidateToken ¶ added in v0.6.0
func (mv MultiValidator) ValidateToken(ctx context.Context, tokenString string) (res interface{}, err error)
ValidateToken Trys to validate the token with each validator NOTE: the last validation error only is returned
type PublishedConfig ¶
type SMTPConfig ¶ added in v0.6.0
type SendGridConfig ¶ added in v0.6.0
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.