auth

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 3 Imported by: 0

README

auth

权限控制

Documentation

Overview

@Time : 2019-08-27 14:11 @Author : zr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	// contains filtered or unexported fields
}

func NewCore

func NewCore(storage model.Storage) *Core

func (*Core) Check

func (c *Core) Check(ServiceUrl string, roleName string) (r bool)

func (*Core) NewRole

func (c *Core) NewRole(name string) *model.Role

func (*Core) NewService

func (c *Core) NewService(name string) *model.Service

func (*Core) Sync

func (c *Core) Sync() error

Directories

Path Synopsis
@Time : 2019-08-27 14:57 @Author : zr
@Time : 2019-08-27 14:57 @Author : zr
storage
gorm
@Time : 2019-08-27 14:22 @Author : zr @Time : 2019-08-27 14:42 @Author : zr @Time : 2019-08-27 14:30 @Author : zr
@Time : 2019-08-27 14:22 @Author : zr @Time : 2019-08-27 14:42 @Author : zr @Time : 2019-08-27 14:30 @Author : zr

Jump to

Keyboard shortcuts

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