rolemodel

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by go generate forge model v0.2.0. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Userid string `model:"userid,VARCHAR(31);index" query:"userid,getgroupeq,role;deleq,userid"`
	Role   string `` /* 151-byte string literal not displayed */
}

Model is the db User role model

type Repo

type Repo interface {
	New(userid, role string) *Model
	GetByID(userid, role string) (*Model, error)
	GetByRole(role string, limit, offset int) ([]string, error)
	GetUserRoles(userid string, limit, offset int) ([]string, error)
	InsertBulk(m []*Model) error
	DeleteRoles(userid string, roles []string) error
	DeleteUserRoles(userid string) error
	Setup() error
}

func New

func New(database db.Database) Repo

Jump to

Keyboard shortcuts

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