Documentation ¶
Index ¶
- func Authenticator(auth *Auth, db *DatabaseSession) fiber.Handler
- func CreateDatasetForm(c *fiber.Ctx) error
- func CreateOrganization(db *DatabaseSession) fiber.Handler
- func CreateOrganizationForm(c *fiber.Ctx) error
- func DorothyRoot() string
- func GetOrganization(db *DatabaseSession) fiber.Handler
- func GetOrganizations(db *DatabaseSession) fiber.Handler
- func Index(c *fiber.Ctx) error
- func Login(jwtAuth *Auth, db *DatabaseSession) fiber.Handler
- func LoginForm(c *fiber.Ctx) error
- func Logout(c *fiber.Ctx) error
- func Organization(c *fiber.Ctx) error
- func Redirect(c *fiber.Ctx, status int, path string, json any, text string) error
- func Registration(db *DatabaseSession) fiber.Handler
- func RegistrationForm(c *fiber.Ctx) error
- func Verifier(auth *Auth) fiber.Handler
- type Auth
- type DatabaseSession
- func (s *DatabaseSession) CreateDataset(newdata model.NewDataset, manifest *core.Manifest, user *model.User) error
- func (s *DatabaseSession) CreateUser(newuser *model.NewUser) error
- func (s *DatabaseSession) Initialize() error
- func (s *DatabaseSession) ValidateCredentials(email, password string) error
- type Server
- func (d *Server) CreateDataset(dataset model.NewDataset, authUser *model.User) error
- func (d *Server) CreateDatasetHandler() fiber.Handler
- func (d *Server) Dataset() fiber.Handler
- func (d *Server) GetDataset() fiber.Handler
- func (d *Server) Listen(host string, port int) error
- func (d *Server) ListenOnPort(port int) error
- func (d *Server) RecieveDataset() fiber.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticator ¶
func Authenticator(auth *Auth, db *DatabaseSession) fiber.Handler
func CreateDatasetForm ¶
func CreateDatasetForm(c *fiber.Ctx) error
func CreateOrganization ¶
func CreateOrganization(db *DatabaseSession) fiber.Handler
func CreateOrganizationForm ¶
func CreateOrganizationForm(c *fiber.Ctx) error
func DorothyRoot ¶
func DorothyRoot() string
func GetOrganization ¶
func GetOrganization(db *DatabaseSession) fiber.Handler
func GetOrganizations ¶
func GetOrganizations(db *DatabaseSession) fiber.Handler
func Login ¶
func Login(jwtAuth *Auth, db *DatabaseSession) fiber.Handler
func Organization ¶
func Organization(c *fiber.Ctx) error
func Registration ¶
func Registration(db *DatabaseSession) fiber.Handler
func RegistrationForm ¶
func RegistrationForm(c *fiber.Ctx) error
Types ¶
type DatabaseSession ¶
func NewDatabaseSession ¶
func NewDatabaseSession(config *core.DatabaseConfig) (*DatabaseSession, error)
func (*DatabaseSession) CreateDataset ¶
func (s *DatabaseSession) CreateDataset(newdata model.NewDataset, manifest *core.Manifest, user *model.User) error
func (*DatabaseSession) CreateUser ¶
func (s *DatabaseSession) CreateUser(newuser *model.NewUser) error
func (*DatabaseSession) Initialize ¶
func (s *DatabaseSession) Initialize() error
func (*DatabaseSession) ValidateCredentials ¶
func (s *DatabaseSession) ValidateCredentials(email, password string) error
type Server ¶
func NewServerFromConfigFile ¶
func NewServerFromDorothy ¶
func (*Server) CreateDataset ¶
func (*Server) CreateDatasetHandler ¶
func (d *Server) CreateDatasetHandler() fiber.Handler
func (*Server) GetDataset ¶
func (d *Server) GetDataset() fiber.Handler
func (*Server) ListenOnPort ¶
func (*Server) RecieveDataset ¶
func (d *Server) RecieveDataset() fiber.Handler
Click to show internal directories.
Click to hide internal directories.