Documentation
¶
Index ¶
- func AuthMiddleware(tokenMaker token.Maker) gin.HandlerFunc
- func NewUserResponse(user db.User) userResponse
- type Server
- func (server *Server) CheckHealth(ctx *gin.Context)
- func (server *Server) CheckReadiness(ctx *gin.Context)
- func (server *Server) CreateAccount(ctx *gin.Context)
- func (server *Server) CreateTransfer(ctx *gin.Context)
- func (server *Server) Start(address string) error
- func (server *Server) ValidAccount(ctx *gin.Context, accountID int64, currency string) (db.Account, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(tokenMaker token.Maker) gin.HandlerFunc
func NewUserResponse ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CheckHealth ¶
func (*Server) CheckReadiness ¶
func (*Server) CreateAccount ¶
func (*Server) CreateTransfer ¶
Click to show internal directories.
Click to hide internal directories.