database

package module
v0.0.0-...-63ea8a0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 8 Imported by: 0

README

developers-environment

An environment for developing ochano.co modules.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AUTH_PAGE_DESTINATION = "localhost:3000"
View Source
var AUTH_PAGE_DOMAIN = "localhost:9000"
View Source
var DB_CONFIG = "file:./db.sqlite3?_fk=1"
View Source
var DB_TYPE = "sqlite3"
View Source
var ERROR_PAGE_URL = "http://localhost:3000/error"
View Source
var LOGIN_REDIRECT_PAGE_URL = "http://localhost:3000/redirect"
View Source
var WHITELIST_FILE = "./whitelist.json"

Functions

func CreateServiceProvider

func CreateServiceProvider(db *Database, host string, destinationIP string) *ent.ServiceProviderCreate

func CreateWhiteList

func CreateWhiteList(db *Database, path string) *ent.WhiteListCreate

func MigrateWhiteList

func MigrateWhiteList() error

func SaveWhiteListOnProj

func SaveWhiteListOnProj(db *Database, projc *ent.ServiceProvider, wlc *ent.WhiteListCreate) (*ent.ServiceProvider, error)

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}
var DB *Database

func InitDB

func InitDB() (*Database, error)

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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