datasource

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: 7 Imported by: 0

Documentation

Overview

Package datasource (Português):

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Name

type Name int
const (
	// KSQLite (Português): Define o datasource como sendo o SQLite3
	KSQLite Name = iota

	// KMongoDB (Português): Define o datasource como sendo o MongoDB
	KMongoDB

	// KTotalMadness (Português): Feito apenas para demonstração
	KTotalMadness

	// KPlugin (Português): Carrega um plugin externo com o módulo escolhido
	KPlugin
)

type RefList

type RefList struct {
	Menu     interfaces.InterfaceMenu     `json:"-"`
	User     interfaces.InterfaceUser     `json:"-"`
	Language interfaces.InterfaceLanguage `json:"-"`
	Password interfaces.InterfacePassword `json:"-"`
	UniqueID interfaces.InterfaceUID      `json:"-"`
}

RefList (Português): Recebe todos os ponteiros de datasource

var Linker RefList

Linker (Português): Arquiva globalmente todos os ponteiros de datasource

func (*RefList) GetReferenceFromLanguages

func (e *RefList) GetReferenceFromLanguages() (datasource interfaces.InterfaceLanguage)

func (*RefList) GetReferenceFromMenu

func (e *RefList) GetReferenceFromMenu() (datasource interfaces.InterfaceMenu)

GetReferenceFromMenu (Português): Retorna o datasource do menu

func (*RefList) GetReferenceFromUser

func (e *RefList) GetReferenceFromUser() (datasource interfaces.InterfaceUser)

GetReferenceFromUser (Português): Retorna o datasource do usuário

func (*RefList) Init

func (e *RefList) Init(name Name) (err error)

Init (Português): Inicializa o datasource escolhido

name: tyme Name
  KSQLite: Inicializa o banco de dados como sendo o SQLite

Jump to

Keyboard shortcuts

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