interfaces

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 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 InterfaceLanguage

type InterfaceLanguage interface {
	New() (referenceInicialized interface{}, err error)
	Connect(connectionString string, args ...interface{}) (err error)
	Close() (err error)
	Install() (err error)
	GetAll() (languagues []dataformat.Languages, length int, err error)
	Set(id, name string) (err error)
}

type InterfaceMenu

type InterfaceMenu interface {
	Connect(connectionString string, args ...interface{}) (err error)
	Close() (err error)
	Get() (menu []dataformat.Menu, length int, err error)
	GetClassroomMenuFields() (menu []dataformat.Menu, length int, err error)
	Install() (err error)
	Set(id, idSecondary string, typeContent int, classroom int, text string, admin int, icon, url string, order int) (err error)
}

type InterfacePassword

type InterfacePassword interface {
	MakeHash(password []byte) (hash []byte, err error)
	CheckHash(password, hash []byte) (match bool)
}

type InterfaceUID

type InterfaceUID interface {
	Get() (uID string)
}

type InterfaceUser

type InterfaceUser interface {
	Connect(connectionString string, args ...interface{}) (err error)
	Close() (err error)
	Install() (err error)
	GetByEmail(mail string) (user dataformat.User, err error)
	Set(id string, admin int, name, nickName, email, password string) (err error)
	MailExists(mail string) (found bool, err error)
}

Jump to

Keyboard shortcuts

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