jwork

package
v0.0.0-...-d808fcf Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsrInfo

type UsrInfo struct {
	UserName string
	// contains filtered or unexported fields
}

UsrInfo provides user and role info

func (UsrInfo) Err

func (u UsrInfo) Err() error

Err returns error value

func (*UsrInfo) FindRole

func (u *UsrInfo) FindRole()

FindRole finds role from db

func (*UsrInfo) FindUser

func (u *UsrInfo) FindUser()

FindUser finds user from db

func (UsrInfo) Role

func (u UsrInfo) Role() *db.Role

Role returns db role

func (UsrInfo) User

func (u UsrInfo) User() *db.User

User returns db user

type Worker

type Worker interface {
	Work()
	Resp() io.Reader
	Err() error
}

Worker wraps json worker

func NewErr

func NewErr(err error) Worker

NewErr returns err Worker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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