playground

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DictionaryDsn = "configs/caskin.toml"

Functions

This section is empty.

Types

type Playground

type Playground struct {
	Service    caskin.IService
	DB         *gorm.DB
	Superadmin *example.User   // superadmin user on playground
	Admin      *example.User   // a domain admin user on stage
	Member     *example.User   // a domain member user on stage
	Domain     *example.Domain // domain on playground
}

Playground example playground for easy testing

func NewPlaygroundWithSqlitePath

func NewPlaygroundWithSqlitePath(sqlitePath string) (*Playground, error)

func NewPlaygroundWithSqlitePathAndWatcher added in v0.2.0

func NewPlaygroundWithSqlitePathAndWatcher(sqlitePath string, watcher *caskin.WatcherOption) (*Playground, error)

func (*Playground) Setup

func (p *Playground) Setup() error

Jump to

Keyboard shortcuts

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