admin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Cache

type Cache interface {
	InvalidateCache() error
	ETage() string
	NewETage() string
	CacheMaxAge() int64
}

type Client

type Client interface {
	ClientSecret() string
}

type Controller

type Controller interface {
	CacheDisabled() bool
	CorsDisabled() bool
	GzipDisabled() bool
}

type Editor

type Editor interface {
	ConfigEditor() ([]byte, error)
}

type Http

type Http interface {
	Domain() string
	HttpPort() string
	BindAddress() string
	DevHttpsPort() string
}

type Persistence

type Persistence interface {
	PutConfig(key string, value any) error
	SetConfig(data url.Values) error
	NewUpload(data url.Values) error
	GetUpload(id string) ([]byte, error)
	DeleteUpload(id string) error
	AllUploads() ([][]byte, error)
}

type Traceable

type Traceable interface {
	FilePath() string
}

type Upload

type Upload interface {
	UploadCreator() func() interface{}
}

type User

type User interface {
	Name() string
}

type UserService

type UserService interface {
	ValidateUser(email, password string) error
	NewUser(email, password string) (User, error)
	IsUserExists(email string) bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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