- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for interfaces (0.21 sec)
-
internal/config/identity/plugin/config.go
// service. type AuthNSuccessResponse struct { User string `json:"user"` MaxValiditySeconds int `json:"maxValiditySeconds"` Claims map[string]interface{} `json:"claims"` } // AuthNErrorResponse - represents an error response from the authN plugin. type AuthNErrorResponse struct { Reason string `json:"reason"` }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 13.3K bytes - Viewed (3) -
internal/config/config.go
// it with the error type specified in the type parameter func Error[T ErrorConfig, PT interface { *T setMsg(string) }](format string, vals ...interface{}, ) T { pt := PT(new(T)) pt.setMsg(fmt.Sprintf(format, vals...)) return *pt } // Errorf formats an error and returns it as a generic config error func Errorf(format string, vals ...interface{}) ErrConfigGeneric { return Error[ErrConfigGeneric](format, vals...) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Mar 02 05:11:03 GMT 2024 - 37.3K bytes - Viewed (0)