schematype

package
v5.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role = string
const (
	MarsAdmin Role = "mars_admin"
)

type UploadType

type UploadType string
const (
	Local UploadType = "local"
	S3    UploadType = "s3"
)

type UserInfo

type UserInfo struct {
	ID      string   `json:"id"`
	Email   string   `json:"email"`
	Name    string   `json:"name"`
	Picture string   `json:"picture"`
	Roles   []string `json:"roles"`

	LogoutUrl string `json:"logout_url"`
}

func (*UserInfo) GetID

func (ui *UserInfo) GetID() string

func (*UserInfo) IsAdmin

func (ui *UserInfo) IsAdmin() bool

func (*UserInfo) Json

func (ui *UserInfo) Json() string

Jump to

Keyboard shortcuts

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