๐Ÿ’พ Archived View for source.community โ€บ ckaznocha โ€บ gemini โ€บ blob โ€บ main โ€บ status_string.gen.go captured on 2024-08-18 at 18:02:58. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2024-02-05)

-=-=-=-=-=-=-

                                                         .
,-. ,-. . . ,-. ,-. ,-.    ,-. ,-. ,-,-. ,-,-. . . ,-. . |- . .
`-. | | | | |   |   |-'    |   | | | | | | | | | | | | | |  | |
`-' `-' `-^ '   `-' `-' :: `-' `-' ' ' ' ' ' ' `-^ ' ' ' `' `-|
                                                             /|
                                                            `-'

Profile for ckaznocha

ckaznocha / gemini

git clone https://source.community/ckaznocha/gemini.git

Branches

Log

Tree

/status_string.gen.go (main)

โ†‘ /

blob

View raw contents of /status_string.gen.go (main)

โ”€โ”€โ”€โ”€โ•ฎ
   1โ”‚ // Code generated by "stringer -linecomment -output status_string.gen.go -type StatusCodeCategory,StatusCode"; DO NOT EDIT.
   2โ”‚ 
   3โ”‚ package gemini
   4โ”‚ 
   5โ”‚ import "strconv"
   6โ”‚ 
   7โ”‚ func _() {
   8โ”‚ 	// An "invalid array index" compiler error signifies that the constant values have changed.
   9โ”‚ 	// Re-run the stringer command to generate them again.
  10โ”‚ 	var x [1]struct{}
  11โ”‚ 	_ = x[StatusCategoryInput-1]
  12โ”‚ 	_ = x[StatusCategorySuccess-2]
  13โ”‚ 	_ = x[StatusCategoryRedirect-3]
  14โ”‚ 	_ = x[StatusCategoryTemporaryFailure-4]
  15โ”‚ 	_ = x[StatusCategoryPermanentFailure-5]
  16โ”‚ 	_ = x[StatusCategoryClientCertificateRequired-6]
  17โ”‚ 	_ = x[StatusCategoryUndefined-0]
  18โ”‚ 	_ = x[StatusCategoryUndefinedX-7]
  19โ”‚ 	_ = x[StatusCategoryUndefinedXX-8]
  20โ”‚ 	_ = x[StatusCategoryUndefinedXXX-9]
  21โ”‚ }
  22โ”‚ 
  23โ”‚ const _StatusCodeCategory_name = "UNDEFINEDINPUTSUCCESSREDIRECTTEMPORARY FAILUREPERMANENT FAILURECLIENT CERTIFICATE REQUIREDUNDEFINEDUNDEFINEDUNDEFINED"
  24โ”‚ 
  25โ”‚ var _StatusCodeCategory_index = [...]uint8{0, 9, 14, 21, 29, 46, 63, 90, 99, 108, 117}
  26โ”‚ 
  27โ”‚ func (i StatusCodeCategory) String() string {
  28โ”‚ 	if i >= StatusCodeCategory(len(_StatusCodeCategory_index)-1) {
  29โ”‚ 		return "StatusCodeCategory(" + strconv.FormatInt(int64(i), 10) + ")"
  30โ”‚ 	}
  31โ”‚ 	return _StatusCodeCategory_name[_StatusCodeCategory_index[i]:_StatusCodeCategory_index[i+1]]
  32โ”‚ }
  33โ”‚ func _() {
  34โ”‚ 	// An "invalid array index" compiler error signifies that the constant values have changed.
  35โ”‚ 	// Re-run the stringer command to generate them again.
  36โ”‚ 	var x [1]struct{}
  37โ”‚ 	_ = x[StatusInput-10]
  38โ”‚ 	_ = x[StatusSensitiveInput-11]
  39โ”‚ 	_ = x[StatusSuccess-20]
  40โ”‚ 	_ = x[StatusTemporaryRedirect-30]
  41โ”‚ 	_ = x[StatusPermanentRedirect-31]
  42โ”‚ 	_ = x[StatusTemporaryFailure-40]
  43โ”‚ 	_ = x[StatusServerFailure-41]
  44โ”‚ 	_ = x[StatusCGIError-42]
  45โ”‚ 	_ = x[StatusProxyError-43]
  46โ”‚ 	_ = x[StatusSlowDown-44]
  47โ”‚ 	_ = x[StatusPermanentFailure-50]
  48โ”‚ 	_ = x[StatusNotFound-51]
  49โ”‚ 	_ = x[StatusGone-52]
  50โ”‚ 	_ = x[StatusProxyRequestRefused-53]
  51โ”‚ 	_ = x[StatusBadRequest-59]
  52โ”‚ 	_ = x[StatusClientCertificateRequired-60]
  53โ”‚ 	_ = x[StatusCertificateNotAuthorised-61]
  54โ”‚ 	_ = x[StatusCertificateNotValid-62]
  55โ”‚ }
  56โ”‚ 
  57โ”‚ const (
  58โ”‚ 	_StatusCode_name_0 = "INPUTSENSITIVE INPUT"
  59โ”‚ 	_StatusCode_name_1 = "SUCCESS"
  60โ”‚ 	_StatusCode_name_2 = "REDIRECT - TEMPORARYREDIRECT - PERMANENT"
  61โ”‚ 	_StatusCode_name_3 = "TEMPORARY FAILURESERVER UNAVAILABLECGI ERRORPROXY ERRORSLOW DOWN"
  62โ”‚ 	_StatusCode_name_4 = "PERMANENT FAILURENOT FOUNDGONEPROXY REQUEST REFUSED"
  63โ”‚ 	_StatusCode_name_5 = "BAD REQUESTCLIENT CERTIFICATE REQUIREDCERTIFICATE NOT AUTHORIZEDCERTIFICATE NOT VALID"
  64โ”‚ )
  65โ”‚ 
  66โ”‚ var (
  67โ”‚ 	_StatusCode_index_0 = [...]uint8{0, 5, 20}
  68โ”‚ 	_StatusCode_index_2 = [...]uint8{0, 20, 40}
  69โ”‚ 	_StatusCode_index_3 = [...]uint8{0, 17, 35, 44, 55, 64}
  70โ”‚ 	_StatusCode_index_4 = [...]uint8{0, 17, 26, 30, 51}
  71โ”‚ 	_StatusCode_index_5 = [...]uint8{0, 11, 38, 64, 85}
  72โ”‚ )
  73โ”‚ 
  74โ”‚ func (i StatusCode) String() string {
  75โ”‚ 	switch {
  76โ”‚ 	case 10 <= i && i <= 11:
  77โ”‚ 		i -= 10
  78โ”‚ 		return _StatusCode_name_0[_StatusCode_index_0[i]:_StatusCode_index_0[i+1]]
  79โ”‚ 	case i == 20:
  80โ”‚ 		return _StatusCode_name_1
  81โ”‚ 	case 30 <= i && i <= 31:
  82โ”‚ 		i -= 30
  83โ”‚ 		return _StatusCode_name_2[_StatusCode_index_2[i]:_StatusCode_index_2[i+1]]
  84โ”‚ 	case 40 <= i && i <= 44:
  85โ”‚ 		i -= 40
  86โ”‚ 		return _StatusCode_name_3[_StatusCode_index_3[i]:_StatusCode_index_3[i+1]]
  87โ”‚ 	case 50 <= i && i <= 53:
  88โ”‚ 		i -= 50
  89โ”‚ 		return _StatusCode_name_4[_StatusCode_index_4[i]:_StatusCode_index_4[i+1]]
  90โ”‚ 	case 59 <= i && i <= 62:
  91โ”‚ 		i -= 59
  92โ”‚ 		return _StatusCode_name_5[_StatusCode_index_5[i]:_StatusCode_index_5[i+1]]
  93โ”‚ 	default:
  94โ”‚ 		return "StatusCode(" + strconv.FormatInt(int64(i), 10) + ")"
  95โ”‚ 	}
  96โ”‚ }
โ”€โ”€โ”€โ”€โ•ฏ

ยท ยท ยท

๐Ÿก Home

FAQs

Privacy Policy

Terms & Conditions

Official Gemlog

info@source.community

ยฉ 2024 source.community