mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 19:02:26 -05:00
[chore]: Bump github.com/gin-contrib/cors from 1.5.0 to 1.7.0 (#2745)
This commit is contained in:
parent
4c155aa847
commit
e24efcac8b
158 changed files with 11727 additions and 4290 deletions
36
vendor/github.com/leodido/go-urn/scim/schema/type.go
generated
vendored
Normal file
36
vendor/github.com/leodido/go-urn/scim/schema/type.go
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package scimschema
|
||||
|
||||
type Type int
|
||||
|
||||
const (
|
||||
Unsupported Type = iota
|
||||
Schemas
|
||||
API
|
||||
Param
|
||||
)
|
||||
|
||||
func (t Type) String() string {
|
||||
switch t {
|
||||
case Schemas:
|
||||
return "schemas"
|
||||
case API:
|
||||
return "api"
|
||||
case Param:
|
||||
return "param"
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
func TypeFromString(input string) Type {
|
||||
switch input {
|
||||
case "schemas":
|
||||
return Schemas
|
||||
case "api":
|
||||
return API
|
||||
case "param":
|
||||
return Param
|
||||
}
|
||||
|
||||
return Unsupported
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue