constant

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessRole

type AccessRole string
const (
	Anonymous AccessRole = "Unknown"
	Guest     AccessRole = "Guest"
	REPORTER  AccessRole = "Reporter"
	DEVELOPER AccessRole = "Developer"
	MASTER    AccessRole = "Master"
	OWNER     AccessRole = "Owner"
)

type RepoDisplayModule

type RepoDisplayModule struct {
	Activity     bool `json:"activity,omitempty"`
	Contributors bool `json:"contributors,omitempty"`
	Release      bool `json:"release,omitempty"`
}

RepoDisplayModule

type RepoStatus

type RepoStatus int
const (
	RepoStatusOK       RepoStatus = 0
	RepoStatusArchived RepoStatus = 1
	RepoStatusForking  RepoStatus = 2
)

func (RepoStatus) String added in v1.0.3

func (repoStatus RepoStatus) String() string

type SlugType

type SlugType int
const (
	SlugTypeGroup    SlugType = 0
	SlugTypeRepo     SlugType = 1
	SlugTypeMission  SlugType = 2
	SlugTypeRegistry SlugType = 3
	SlugTypeUnknown  SlugType = 4
)

func (SlugType) String added in v1.0.3

func (slugType SlugType) String() string

type UserEditable

type UserEditable struct {
	Avatar   bool `json:"avatar,omitempty"`
	Email    bool `json:"email,omitempty"`
	Logoff   bool `json:"logoff,omitempty"`
	Nickname bool `json:"nickname,omitempty"`
	SyncData bool `json:"sync-data,omitempty"`
	Username bool `json:"username,omitempty"`
}

UserEditable

type UserType

type UserType int
const (
	WeChatUser UserType = 0
	OauthUser  UserType = 1
	TestUser   UserType = 2
	RobotUser  UserType = 3
	IoaUser    UserType = 4
)

func (UserType) String added in v1.0.3

func (userType UserType) String() string

type Visibility

type Visibility string
const (
	VisibilityPrivate Visibility = "Private"
	VisibilityPublic  Visibility = "Public"
	VisibilitySecret  Visibility = "Secret"
)

Source Files

  • constant.go

Jump to

Keyboard shortcuts

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