Documentation ¶
Index ¶
- func ContextMiddleware(fn func(ctx context.Context) context.Context) echo.MiddlewareFunc
- func DownloadPlugin() echo.HandlerFunc
- func GraphqlAPI(conf GraphQLConfig) echo.HandlerFunc
- func IncreasePluginDownloadCount() echo.HandlerFunc
- func Ping() echo.HandlerFunc
- func Start(debug bool, version string) error
- func UsecaseMiddleware(r *repo.Container, g *gateway.Container) echo.MiddlewareFunc
- type AuthConfig
- type AuthM2MConfig
- type Config
- type GCSConfig
- type GraphQLConfig
- type ServerConfig
- type WebServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextMiddleware ¶
func DownloadPlugin ¶
func DownloadPlugin() echo.HandlerFunc
func GraphqlAPI ¶
func GraphqlAPI(conf GraphQLConfig) echo.HandlerFunc
func IncreasePluginDownloadCount ¶
func IncreasePluginDownloadCount() echo.HandlerFunc
Types ¶
type AuthConfig ¶
type AuthM2MConfig ¶
type Config ¶
type Config struct { Port string `default:"8080" envconfig:"PORT"` DB string `default:"mongodb://localhost" pp:"-"` Auth AuthConfig `pp:",omitempty"` Auth_M2M AuthM2MConfig `pp:",omitempty"` GCS GCSConfig `pp:",omitempty"` GraphQL GraphQLConfig `pp:",omitempty"` Origins []string `pp:",omitempty"` Debug bool `pp:",omitempty"` }
func LoadConfig ¶
func (*Config) AuthProviders ¶
func (c *Config) AuthProviders() (p []appx.JWTProvider)
type GraphQLConfig ¶
type GraphQLConfig struct {
ComplexityLimit int `default:"6000"`
}
type ServerConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.