Documentation
¶
Index ¶
- func AppendRouters(log logging.Logger, appendTo *mux.Router, routers ...Router) *mux.Router
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
- func NewCredentialLogContext(credential *client.Credential) logging.LogContext
- func NewIdentityLogContext(identity *client.Identity) logging.LogContext
- func NewLoginLogContext(login *client.Login) logging.LogContext
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- type IdentityID
- type Route
- type Router
- type Routes
- type TenantID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRouters ¶
AppendRouters creates a new router for any number of api routers
func EncodeJSONResponse ¶
func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code
func NewCredentialLogContext ¶
func NewCredentialLogContext(credential *client.Credential) logging.LogContext
func NewIdentityLogContext ¶
func NewIdentityLogContext(identity *client.Identity) logging.LogContext
func NewLoginLogContext ¶
func NewLoginLogContext(login *client.Login) logging.LogContext
Types ¶
type IdentityID ¶
func (*IdentityID) String ¶
func (id *IdentityID) String() string
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
A Route defines the parameters for an api endpoint
Click to show internal directories.
Click to hide internal directories.