model

package
v0.0.0-...-b698091 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type CasbinRule

type CasbinRule struct {
	Id    int64  `db:"id"`
	Ptype string `db:"ptype"`
	V0    string `db:"v0"`
	V1    string `db:"v1"`
	V2    string `db:"v2"`
	V3    string `db:"v3"`
	V4    string `db:"v4"`
	V5    string `db:"v5"`
}

type CasbinRuleModel

type CasbinRuleModel interface {
	// contains filtered or unexported methods
}

CasbinRuleModel is an interface to be customized, add more methods here, and implement the added methods in customCasbinRuleModel.

func NewCasbinRuleModel

func NewCasbinRuleModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) CasbinRuleModel

NewCasbinRuleModel returns a model for the database table.

Jump to

Keyboard shortcuts

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