Documentation ¶
Index ¶
- Variables
- func CreateAccountType(w http.ResponseWriter, r *http.Request)
- func GetAccountTypes(w http.ResponseWriter, r *http.Request)
- func GetAccounts(w http.ResponseWriter, r *http.Request)
- func GetCategories(w http.ResponseWriter, r *http.Request)
- func GetToken(w http.ResponseWriter, r *http.Request)
- func GetTransactions(w http.ResponseWriter, r *http.Request)
- func GetUsers(w http.ResponseWriter, r *http.Request)
- func WireUpRoutes(router *mux.Router)
- type AccountTypeRequest
- type ApiClaims
- type LoginMessage
- type Response
- type ReturnToken
Constants ¶
This section is empty.
Variables ¶
View Source
var SigningKey = []byte("AllYourBase")
Functions ¶
func CreateAccountType ¶
func CreateAccountType(w http.ResponseWriter, r *http.Request)
func GetAccountTypes ¶
func GetAccountTypes(w http.ResponseWriter, r *http.Request)
func GetAccounts ¶
func GetAccounts(w http.ResponseWriter, r *http.Request)
func GetCategories ¶
func GetCategories(w http.ResponseWriter, r *http.Request)
func GetTransactions ¶
func GetTransactions(w http.ResponseWriter, r *http.Request)
func WireUpRoutes ¶
Types ¶
type AccountTypeRequest ¶
type ApiClaims ¶
type ApiClaims struct { Username string `json:"user"` UserID uint `json:"user_id"` jwt.StandardClaims }
type LoginMessage ¶
type ReturnToken ¶
Click to show internal directories.
Click to hide internal directories.