app

package
v0.0.0-...-3ce79b3 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RootDir points to the root dir
	RootDir string

	// StoragePath is where we save the samples
	StoragePath string

	// MaxFileSize allowed
	MaxFileSize int64

	// MaxAvatarFileSize allowed
	MaxAvatarFileSize int64

	// Domain name
	Domain string

	// NsqProducer holds an instance of NSQ producer.
	NsqProducer *nsq.Producer

	// MinioClient represents an instance of Object Space API client.
	MinioClient *minio.Client

	// UserSchema represent a user
	UserSchema *gojsonschema.Schema

	// FileSchema represent a user
	FileSchema *gojsonschema.Schema

	// LoginSchema represent a user login
	LoginSchema *gojsonschema.Schema

	// EmailSchema represent a request to change password
	EmailSchema *gojsonschema.Schema

	// ResetPasswordSchema represent a change password.
	ResetPasswordSchema *gojsonschema.Schema

	// FileActionSchema represent an action over a file.
	FileActionSchema *gojsonschema.Schema

	// UserUpdateSchema represent an update user.
	UserUpdateSchema *gojsonschema.Schema

	// PasswordUpdateSchema represent an update password.
	PasswordUpdateSchema *gojsonschema.Schema

	// EmailUpdateSchema represent an update email.
	EmailUpdateSchema *gojsonschema.Schema

	// UserActionSchema represent an action over a user.
	UserActionSchema *gojsonschema.Schema

	// CommentSchema represent an comment creation.
	CommentSchema *gojsonschema.Schema

	// SamplesSpaceBucket contains the space name of bucket to save samples.
	SamplesSpaceBucket string

	// AvatarSpaceBucket contains the space name of bucket to save user avatars.
	AvatarSpaceBucket string

	// Hermes represents an instance email generator.
	Hermes hermes.Hermes

	// SMTPConfig holds smtp config.
	SMTPConfig SMTPAuthentication

	// AvatarFileBuff contains the content of the default image avatar file path.
	AvatarFileBuff []byte

	// SfwAvatarFileDesc holds a descriptor to saferwall's image avatar file path.
	SfwAvatarFileDesc *os.File
)

Functions

func Init

func Init()

Init will initiate required objects

Types

type SMTPAuthentication

type SMTPAuthentication struct {
	Server         string
	Port           int
	SenderEmail    string
	SenderIdentity string
	SMTPUser       string
	SMTPPassword   string
}

Directories

Path Synopsis
common
db
handler

Jump to

Keyboard shortcuts

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