entity

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

func (*Admin) BindAddress

func (a *Admin) BindAddress() string

func (*Admin) ConfigEditor

func (a *Admin) ConfigEditor() ([]byte, error)

func (*Admin) DevHttpsPort

func (a *Admin) DevHttpsPort() string

func (*Admin) Domain

func (a *Admin) Domain() string

func (*Admin) HttpPort

func (a *Admin) HttpPort() string

func (*Admin) InvalidateCache

func (a *Admin) InvalidateCache() error

func (*Admin) LoadConfig

func (a *Admin) LoadConfig() error

func (*Admin) Name

func (a *Admin) Name() string

func (*Admin) PutConfig

func (a *Admin) PutConfig(key string, value any) error

func (*Admin) RefreshETage

func (a *Admin) RefreshETage()

func (*Admin) SetConfig

func (a *Admin) SetConfig(data url.Values) error

type Administrator

type Administrator struct {
	Repo repository.Repository

	Log loggers.Logger
}

func (*Administrator) AllUsers

func (a *Administrator) AllUsers() ([]admin.User, error)

func (*Administrator) AllUsersExcept

func (a *Administrator) AllUsersExcept(one admin.User) ([]admin.User, error)

func (*Administrator) GetUser

func (a *Administrator) GetUser(email string) (admin.User, error)

func (*Administrator) IsUserExists

func (a *Administrator) IsUserExists(email string) bool

func (*Administrator) NewUser

func (a *Administrator) NewUser(email, password string) (admin.User, error)

func (*Administrator) ValidateUser

func (a *Administrator) ValidateUser(email, password string) error

type Cache

type Cache struct {
	Conf *valueobject.Config
}

func (*Cache) CacheMaxAge

func (a *Cache) CacheMaxAge() int64

func (*Cache) ETage

func (a *Cache) ETage() string

func (*Cache) NewETage

func (a *Cache) NewETage() string

type Client

type Client struct {
	Conf *valueobject.Config
}

func (*Client) ClientSecret

func (a *Client) ClientSecret() string

type Controller

type Controller struct {
	Conf *valueobject.Config
}

func (*Controller) CacheDisabled

func (a *Controller) CacheDisabled() bool

func (*Controller) CorsDisabled

func (a *Controller) CorsDisabled() bool

func (*Controller) GzipDisabled

func (a *Controller) GzipDisabled() bool

type Http

type Http struct {
	Conf *valueobject.Config
}

type Netlify

type Netlify struct {
	Conf *valueobject.Config
}

func (*Netlify) Token

func (a *Netlify) Token() string

type Upload

type Upload struct {
	Repo repository.Repository
}

func (*Upload) AllUploads

func (a *Upload) AllUploads() ([][]byte, error)

func (*Upload) DeleteUpload

func (a *Upload) DeleteUpload(id string) error

func (*Upload) GetUpload

func (a *Upload) GetUpload(id string) ([]byte, error)

func (*Upload) NewUpload

func (a *Upload) NewUpload(data url.Values) error

func (*Upload) UploadCreator

func (a *Upload) UploadCreator() func() interface{}

Jump to

Keyboard shortcuts

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