xstatus

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 0 Imported by: 2

README

xstatus

Dependencies

  • xtesting*

Document

Types
  • type DbStatus uint64
  • type FsmStatus uint64
  • type JwtStatus uint64
Variables
  • None
Constants
  • const DbUnknown DbStatus
  • const DbSuccess DbStatus
  • const DbNotFound DbStatus
  • const DbExisted DbStatus
  • const DbFailed DbStatus
  • const DbTagA DbStatus
  • const DbTagB DbStatus
  • const DbTagC DbStatus
  • const DbTagD DbStatus
  • const DbTagE DbStatus
  • const FsmNone FsmStatus
  • const FsmInState FsmStatus
  • const FsmFinal FsmStatus
  • const FsmTagA FsmStatus
  • const FsmTagB FsmStatus
  • const FsmTagC FsmStatus
  • const FsmTagD FsmStatus
  • const FsmTagE FsmStatus
  • const JwtUnknown JwtStatus
  • const JwtSuccess JwtStatus
  • const JwtBlank JwtStatus
  • const JwtInvalid JwtStatus
  • const JwtAudience JwtStatus
  • const JwtExpired JwtStatus
  • const JwtId JwtStatus
  • const JwtIssuedAt JwtStatus
  • const JwtIssuer JwtStatus
  • const JwtNotValidYet JwtStatus
  • const JwtSubject JwtStatus
  • const JwtClaimsInvalid JwtStatus
  • const JwtTokenNotFound JwtStatus
  • const JwtUserNotFound JwtStatus
  • const JwtFailed JwtStatus
  • const JwtTagA JwtStatus
  • const JwtTagB JwtStatus
  • const JwtTagC JwtStatus
  • const JwtTagD JwtStatus
  • const JwtTagE JwtStatus
Functions
  • None
Methods
  • func (d DbStatus) String() string
  • func (f FsmStatus) String() string
  • func (j JwtStatus) String() string

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbStatus

type DbStatus uint64

DbStatus represents a status value for database operator.

const (
	DbUnknown  DbStatus = iota      // Unknown
	DbSuccess                       // Success (CRUD)
	DbNotFound                      // Not found (RUD)
	DbExisted                       // Existed (CU)
	DbFailed                        // Failed (CRUD)
	DbTagA     DbStatus = iota + 96 // Tag a
	DbTagB                          // Tag b
	DbTagC                          // Tag c
	DbTagD                          // Tag d
	DbTagE                          // Tag e
)

func (DbStatus) String

func (d DbStatus) String() string

type FsmStatus

type FsmStatus uint64

FsmStatus represents a status value for finite status machine. Actually this is a dummy type.

const (
	FsmNone    FsmStatus = iota      // None
	FsmInState                       // In state
	FsmFinal                         // Final
	FsmTagA    FsmStatus = iota + 98 // Tag a
	FsmTagB                          // Tag b
	FsmTagC                          // Tag c
	FsmTagD                          // Tag d
	FsmTagE                          // Tag e
)

func (FsmStatus) String

func (f FsmStatus) String() string

type JwtStatus

type JwtStatus uint64

JwtStatus represents a status value for jwt and database operator.

const (
	JwtUnknown JwtStatus = 0    // Unknown
	JwtSuccess JwtStatus = iota // Success
	JwtBlank                    // Blank token
	JwtInvalid                  // Could not be parsed (malformed, unverifiable, invalid signature)

	JwtTokenNotFound // Token not found
	JwtUserNotFound  // User not found
	JwtFailed        // Something error
	JwtTagA          // Tag a
	JwtTagB          // Tag b
	JwtTagC          // Tag c
	JwtTagD          // Tag d
	JwtTagE          // Tag e
)

0 - 11

const (
	JwtAudience      JwtStatus = 16 << iota // AUD (Audience)
	JwtExpired                              // EXP (Expires at)
	JwtId                                   // JTI (Id)
	JwtIssuedAt                             // IAT (Issued at)
	JwtIssuer                               // ISS (Issuer)
	JwtNotValidYet                          // NBF (Not before)
	JwtSubject                              // SUB (Subject)
	JwtClaimsInvalid                        // Generic
)

16 - 2048

func (JwtStatus) String

func (j JwtStatus) String() string

Jump to

Keyboard shortcuts

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