user

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 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 OAuthUserImplementationV2

type OAuthUserImplementationV2 struct {
	Id              int64              `json:"id"`
	Name            string             `json:"name"`
	Email           string             `json:"email"`
	EmailVerifiedAt string             `json:"email_verified_at"`
	Roles           []permissions.Role `json:"roles"`
}

func (*OAuthUserImplementationV2) GetRoles

func (u *OAuthUserImplementationV2) GetRoles() []permissions.Role

func (*OAuthUserImplementationV2) GetUserInfo

func (u *OAuthUserImplementationV2) GetUserInfo() (ui UserInfo)

func (*OAuthUserImplementationV2) ToString

func (u *OAuthUserImplementationV2) ToString() string

type User

type User interface {
	ToString() string
	GetRoles() []permissions.Role
	GetUserInfo() UserInfo
}

type UserInfo

type UserInfo = struct {
	Id    int64
	Name  string
	Email string
}

Jump to

Keyboard shortcuts

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