model

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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 InviteCode

type InviteCode struct {
	ID         repos.ID `json:"id"`
	Name       string   `json:"name"`
	InviteCode string   `json:"inviteCode"`
}

type Mutation

type Mutation struct {
}

type OAuthProviderStatus

type OAuthProviderStatus struct {
	Provider string `json:"provider"`
	Enabled  bool   `json:"enabled"`
}

type Query

type Query struct {
}

type RemoteLogin

type RemoteLogin struct {
	Status     string  `json:"status"`
	AuthHeader *string `json:"authHeader,omitempty"`
}

type Session

type Session struct {
	ID           repos.ID `json:"id"`
	UserID       repos.ID `json:"userId"`
	UserEmail    string   `json:"userEmail"`
	LoginMethod  string   `json:"loginMethod"`
	UserVerified bool     `json:"userVerified"`
}

type User

type User struct {
	ID             repos.ID               `json:"id"`
	Name           string                 `json:"name"`
	Email          string                 `json:"email"`
	Avatar         *string                `json:"avatar,omitempty"`
	Invite         string                 `json:"invite"`
	Verified       bool                   `json:"verified"`
	Approved       bool                   `json:"approved"`
	Metadata       map[string]interface{} `json:"metadata,omitempty"`
	Joined         string                 `json:"joined"`
	ProviderGitlab map[string]interface{} `json:"providerGitlab,omitempty"`
	ProviderGithub map[string]interface{} `json:"providerGithub,omitempty"`
	ProviderGoogle map[string]interface{} `json:"providerGoogle,omitempty"`
}

func (User) IsEntity

func (User) IsEntity()

Jump to

Keyboard shortcuts

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