user

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultInfo

type DefaultInfo struct {
	Name     string
	FullName string
	ID       uint
	Email    string
	Admin    bool
}

func (*DefaultInfo) GetEmail

func (d *DefaultInfo) GetEmail() string

func (*DefaultInfo) GetFullName

func (d *DefaultInfo) GetFullName() string

func (*DefaultInfo) GetID

func (d *DefaultInfo) GetID() uint

func (*DefaultInfo) GetName

func (d *DefaultInfo) GetName() string

func (*DefaultInfo) GetStrID

func (d *DefaultInfo) GetStrID() string

func (*DefaultInfo) IsAdmin

func (d *DefaultInfo) IsAdmin() bool

func (*DefaultInfo) String

func (d *DefaultInfo) String() string

type User

type User interface {
	GetName() string
	GetFullName() string
	GetID() uint
	GetEmail() string
	String() string
	IsAdmin() bool

	GetStrID() string
}

User describes a user that has been authenticated to the system

Jump to

Keyboard shortcuts

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