Documentation
¶
Index ¶
- func BodyDecode(r *http.Request, value interface{}) *errors.VironError
- func GenAuthorizationCookie(token string, opts *http.Cookie) *http.Cookie
- func GenCookie(key string, value string, opts *http.Cookie) *http.Cookie
- func GenOAuthStateCookie(state string, opts *http.Cookie) *http.Cookie
- func GenSalt(size int) string
- func GetCookieToken(r *http.Request) (string, error)
- func MethodNameLower(method string) string
- func MethodNameUpper(method string) string
- func OasMerge(dist *openapi3.T, src *openapi3.T) error
- func Ref(docRoot *openapi3.T, org string, rep string) error
- func Send(w http.ResponseWriter, code int, send interface{})
- func SendError(w http.ResponseWriter, code int, err error)
- func String2Hash(str string, salt string, size int, iterations int) string
- func UnixToTime(unixTime int) time.Time
- func UpperCamelToLowerCamel(operationID string) string
- func VerifyPassword(input string, hashed string, salt string) bool
- type Extensions
- type Password
- type StringSlice
- type XAutoComplete
- type XContent
- type XPage
- type XTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyDecode ¶
func BodyDecode(r *http.Request, value interface{}) *errors.VironError
func GenAuthorizationCookie ¶
GenAuthorizationCookie 認証cookie生成
func GenOAuthStateCookie ¶
GenOAuthStateCookie cookie生成
func GetCookieToken ¶
GetCookieToken cookieから認証token取得
func MethodNameLower ¶
func MethodNameUpper ¶
func Send ¶
func Send(w http.ResponseWriter, code int, send interface{})
func String2Hash ¶
String2Hash saltを使ってstringをハッシュ化
func UnixToTime ¶
func UpperCamelToLowerCamel ¶
Types ¶
type Extensions ¶
type Extensions struct { XPages []*XPage `json:"x-pages"` XTable *XTable `json:"x-table"` XComplete *XAutoComplete `json:"x-autocomplete"` XTheme string `json:"x-theme"` XThumbnail string `json:"x-thumbnail"` XTags []string `json:"x-tags"` }
func ConvertExtentions ¶
func ConvertExtentions(apiDef *openapi3.T) *Extensions
type Password ¶
func GenPassword ¶
GenPassword passwordをハッシュ化
type StringSlice ¶
type StringSlice []string
func (StringSlice) Contains ¶
func (s StringSlice) Contains(value string) bool
type XAutoComplete ¶
Click to show internal directories.
Click to hide internal directories.