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
Click to show internal directories.
Click to hide internal directories.