db

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCasbin

func NewCasbin(svc service.Service, cfg *config.Config) (ef *casbin.SyncedEnforcer, err error)

NewCasbin after Service, and SetEnforcer for service

func NewDB

func NewDB(cfg *config.Config) (db *gorm.DB, err error)

func NewMC

func NewMC(cfg *config.Config) (mc memcache.Memcache, err error)

func WatchCasbinConfig

func WatchCasbinConfig(e *casbin.SyncedEnforcer, c *database.CasbinConfig, key string)

func WatchCasbinModel

func WatchCasbinModel(e *casbin.SyncedEnforcer, c *database.CasbinConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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