roles

package
v0.0.0-...-9e745d5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	ID       int64              `json:"id"`
	Name     string             `json:"name"`
	DBClient *postgres.PGClient `json:",omitempty"`
}

func (*Role) Create

func (r *Role) Create() error

Create - create new role and insert data to database

func (*Role) Delete

func (r *Role) Delete() error

Delete -delete role

func (*Role) Update

func (r *Role) Update() error

Update - update role data

Jump to

Keyboard shortcuts

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