Documentation
¶
Overview ¶
Package service provides the authentication server with the HTTP handler functions for token and user resources. Also, it provides a microservice using JSON RPC to verify whether the access token is valid or not.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCHandler ¶
RPCHandler function
type ResourceHandler ¶
type ResourceHandler func(http.ResponseWriter, *http.Request)
ResourceHandler function
type Token ¶
type Token interface {
Refresh() ResourceHandler
}
Token interface
func TokenResource ¶
TokenResource method
type User ¶
type User interface { SignIn() ResourceHandler SignUp() ResourceHandler ChangePass() ResourceHandler }
User interface
Click to show internal directories.
Click to hide internal directories.