status

package
v0.0.0-...-dd01cb3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conf string)

Types

type AuthStatus

type AuthStatus struct {
	InvalidUserPassword Status `yaml:"invalid_user_password"`
}

func Auth

func Auth() AuthStatus

type CommunityStatus

type CommunityStatus struct {
	NameTaken    Status `yaml:"name_taken"`
	UserEnrolled Status `yaml:"user_enrolled"`
	NotFound     Status `yaml:"community_not_found"`
	CreateFail   Status `yaml:"create_failed"`
}

func Community

func Community() CommunityStatus

type GenStatus

type GenStatus struct {
	Success    Status         `yaml:"success"`
	NotFound   Status         `yaml:"not_found"`
	Timeout    status.Timeout `yaml:"timeout"`
	BadRequest Status         `yaml:"bad_request"`
	Internal   Status         `yaml:"internal"`
}

func Gen

func Gen() GenStatus

type PolicyStatus

type PolicyStatus struct {
	Unauthorized Status `yaml:"unauthorized"`
}

func Policy

func Policy() PolicyStatus

type PostStatus

type PostStatus struct {
	Archived Status `yaml:"archived"`
	NotFound Status `yaml:"post_not_found"`
}

func Post

func Post() PostStatus

type Status

type Status = status.Status

func Success

func Success() Status

type UserStatus

type UserStatus struct {
	DuplicatedEmail Status `yaml:"duplicated_email"`
	RegisterFail    Status `yaml:"register_fail"`
}

func User

func User() UserStatus

Jump to

Keyboard shortcuts

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