handler

package
v0.0.0-...-0c811c1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Perm

type Perm struct{}

Perm Handler

func (*Perm) Delete

func (s *Perm) Delete(ctx context.Context, req *proto.PermInfo, res *proto.PermInfo) error

Delete API

func (*Perm) Insert

func (s *Perm) Insert(ctx context.Context, req *proto.PermInfo, res *proto.PermInfo) error

Insert API

func (*Perm) Select

func (s *Perm) Select(ctx context.Context, req *proto.PermInfo, res *proto.PermInfo) error

Select API

func (*Perm) Update

func (s *Perm) Update(ctx context.Context, req *proto.PermWrapper, res *proto.PermInfo) error

Update API

type Role

type Role struct {
}

Role Handler

func (*Role) Delete

func (s *Role) Delete(ctx context.Context, req *proto.RoleInfo, res *proto.RoleInfo) error

Delete API

func (*Role) Insert

func (s *Role) Insert(ctx context.Context, req *proto.RoleInfo, res *proto.RoleInfo) error

Insert API

func (*Role) Perm

func (s *Role) Perm(ctx context.Context, req *proto.Modification, res *proto.Result) error

Perm modify

func (*Role) Perms

func (s *Role) Perms(ctx context.Context, req *proto.Identity, res *proto.Result) error

Perms Action

func (*Role) Select

func (s *Role) Select(ctx context.Context, req *proto.RoleInfo, res *proto.RoleInfo) error

Select API

func (*Role) Update

func (s *Role) Update(ctx context.Context, req *proto.RoleWrapper, res *proto.RoleInfo) error

Update API

type User

type User struct{}

User Handler

func (*User) Change

func (s *User) Change(ctx context.Context, req *proto.UserToken, res *proto.UserToken) error

Change Action

func (*User) Check

func (s *User) Check(ctx context.Context, req *proto.UserToken, res *proto.UserToken) error

Check Action

func (*User) Delete

func (s *User) Delete(ctx context.Context, req *proto.UserAuth, res *proto.UserToken) error

Delete Action

func (*User) Info

func (s *User) Info(ctx context.Context, req *proto.UserToken, res *proto.UserToken) error

Info Action

func (*User) Insert

func (s *User) Insert(ctx context.Context, req *proto.UserAuth, res *proto.UserToken) error

Insert Action

func (*User) Login

func (s *User) Login(ctx context.Context, req *proto.UserAuth, res *proto.UserToken) error

Login Action

func (*User) Perms

func (s *User) Perms(ctx context.Context, req *proto.Identity, res *proto.Result) error

Perms Action

func (*User) Register

func (s *User) Register(ctx context.Context, req *proto.UserAuth, res *proto.UserToken) error

Register Action

func (*User) Role

func (s *User) Role(ctx context.Context, req *proto.Modification, res *proto.Result) error

Role modify

func (*User) Roles

func (s *User) Roles(ctx context.Context, req *proto.Identity, res *proto.Result) error

Roles Action

func (*User) Select

func (s *User) Select(ctx context.Context, req *proto.UserAuth, res *proto.UserToken) error

Select Action

func (*User) Update

func (s *User) Update(ctx context.Context, req *proto.UserToken, res *proto.UserToken) error

Update Action

Jump to

Keyboard shortcuts

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