config

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfiguration

type AuthConfiguration struct {
	Secret string
}

AuthConfiguration struct

type Configuration

type Configuration struct {
	Logger *logger.Configuration
	Server *server.Configuration
	Image  *ImageConfiguration
	Auth   *AuthConfiguration
	Doc    *DocConfiguration
}

Configuration struct

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration constructor

type DocConfiguration

type DocConfiguration struct {
	Enable bool
}

DocConfiguration struct

type ImageCacheConfiguration

type ImageCacheConfiguration struct {
	Provider string
	FS       *filesystem.CacheConfiguration
	Memory   *memory.CacheConfiguration
}

ImageCacheConfiguration struct

type ImageConfiguration

type ImageConfiguration struct {
	Source  *ImageSourceConfiguration
	Cache   *ImageCacheConfiguration
	Support *ImageSupportConfiguration
}

ImageConfiguration struct

type ImageSourceConfiguration

type ImageSourceConfiguration struct {
	MaxSize  int64 `mapstructure:"max_size"`
	Provider string
	FS       *filesystem.SourceConfiguration
}

ImageSourceConfiguration struct

type ImageSupportConfiguration

type ImageSupportConfiguration struct {
	Extensions map[string]interface{}
}

ImageSupportConfiguration struct

func (ImageSupportConfiguration) IsExtSupported

func (c ImageSupportConfiguration) IsExtSupported(ext string) bool

IsExtSupported return true if ext is supported

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL