Documentation ¶
Index ¶
- type Auth
- type AuthImpl
- type BankAccount
- type BankAccountImpl
- func (h *BankAccountImpl) HandleCreateBankAccount(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleCreateBankAccountBalance(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleDeleteBankAccount(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleDeleteBankAccountBalance(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleGetBankAccountBalanceByFilter(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleGetBankAccountBalanceByID(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleGetBankAccountByFilter(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleGetBankAccountByID(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleUpdateBankAccount(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) HandleUpdateBankAccountBalance(w http.ResponseWriter, r *http.Request)
- func (h *BankAccountImpl) Shutdown()
- func (h *BankAccountImpl) Startup()
- type Health
- type HealthImpl
- type User
- type UserImpl
- func (h *UserImpl) HandleCreateUser(w http.ResponseWriter, r *http.Request)
- func (h *UserImpl) HandleGetUserByFilter(w http.ResponseWriter, r *http.Request)
- func (h *UserImpl) HandleGetUserByID(w http.ResponseWriter, r *http.Request)
- func (h *UserImpl) HandleUpdateUser(w http.ResponseWriter, r *http.Request)
- func (h *UserImpl) Shutdown()
- func (h *UserImpl) Startup()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { Startup() Shutdown() HandleAuthLogin(w http.ResponseWriter, r *http.Request) HandleGetToken(w http.ResponseWriter, r *http.Request) }
Auth is the authentication handler interface
type AuthImpl ¶
type AuthImpl struct { Service service.Auth `inject:"authService"` UserService service.User `inject:"userService"` }
AuthImpl handles all requests related to authentication and authorization
func (*AuthImpl) HandleAuthLogin ¶
func (h *AuthImpl) HandleAuthLogin(w http.ResponseWriter, r *http.Request)
HandleAuthLogin performs a login action and returns the JWT token
func (*AuthImpl) HandleGetToken ¶
func (h *AuthImpl) HandleGetToken(w http.ResponseWriter, r *http.Request)
HandleGetToken fetches a new token for the currently logged-in user
type BankAccount ¶
type BankAccount interface { Startup() Shutdown() HandleCreateBankAccount(w http.ResponseWriter, r *http.Request) HandleGetBankAccountByID(w http.ResponseWriter, r *http.Request) HandleGetBankAccountByFilter(w http.ResponseWriter, r *http.Request) HandleUpdateBankAccount(w http.ResponseWriter, r *http.Request) HandleDeleteBankAccount(w http.ResponseWriter, r *http.Request) HandleCreateBankAccountBalance(w http.ResponseWriter, r *http.Request) HandleGetBankAccountBalanceByID(w http.ResponseWriter, r *http.Request) HandleGetBankAccountBalanceByFilter(w http.ResponseWriter, r *http.Request) HandleUpdateBankAccountBalance(w http.ResponseWriter, r *http.Request) HandleDeleteBankAccountBalance(w http.ResponseWriter, r *http.Request) }
BankAccount is the handler interface for Bank Accounts
type BankAccountImpl ¶
type BankAccountImpl struct {
Service service.BankAccount `inject:"bankAccountService"`
}
BankAccountImpl is the handler implementation for Bank Accounts
func (*BankAccountImpl) HandleCreateBankAccount ¶
func (h *BankAccountImpl) HandleCreateBankAccount(w http.ResponseWriter, r *http.Request)
HandleCreateBankAccount handles the request
func (*BankAccountImpl) HandleCreateBankAccountBalance ¶
func (h *BankAccountImpl) HandleCreateBankAccountBalance(w http.ResponseWriter, r *http.Request)
HandleCreateBankAccountBalance handles the request
func (*BankAccountImpl) HandleDeleteBankAccount ¶
func (h *BankAccountImpl) HandleDeleteBankAccount(w http.ResponseWriter, r *http.Request)
HandleDeleteBankAccount handles the request
func (*BankAccountImpl) HandleDeleteBankAccountBalance ¶
func (h *BankAccountImpl) HandleDeleteBankAccountBalance(w http.ResponseWriter, r *http.Request)
HandleDeleteBankAccountBalance handles the request
func (*BankAccountImpl) HandleGetBankAccountBalanceByFilter ¶
func (h *BankAccountImpl) HandleGetBankAccountBalanceByFilter(w http.ResponseWriter, r *http.Request)
HandleGetBankAccountBalanceByFilter handles the request
func (*BankAccountImpl) HandleGetBankAccountBalanceByID ¶
func (h *BankAccountImpl) HandleGetBankAccountBalanceByID(w http.ResponseWriter, r *http.Request)
HandleGetBankAccountBalanceByID handles the request
func (*BankAccountImpl) HandleGetBankAccountByFilter ¶
func (h *BankAccountImpl) HandleGetBankAccountByFilter(w http.ResponseWriter, r *http.Request)
HandleGetBankAccountByFilter handles the request
func (*BankAccountImpl) HandleGetBankAccountByID ¶
func (h *BankAccountImpl) HandleGetBankAccountByID(w http.ResponseWriter, r *http.Request)
HandleGetBankAccountByID handles the request
func (*BankAccountImpl) HandleUpdateBankAccount ¶
func (h *BankAccountImpl) HandleUpdateBankAccount(w http.ResponseWriter, r *http.Request)
HandleUpdateBankAccount handles the request
func (*BankAccountImpl) HandleUpdateBankAccountBalance ¶
func (h *BankAccountImpl) HandleUpdateBankAccountBalance(w http.ResponseWriter, r *http.Request)
HandleUpdateBankAccountBalance handles the request
func (*BankAccountImpl) Shutdown ¶
func (h *BankAccountImpl) Shutdown()
Shutdown cleans up everything and shuts down
func (*BankAccountImpl) Startup ¶
func (h *BankAccountImpl) Startup()
Startup perform startup functions
type Health ¶
type Health interface { Startup() Shutdown() HandleHealthCheck(w http.ResponseWriter, r *http.Request) }
Health is the handler interface for Server Health
type HealthImpl ¶
type HealthImpl struct {
// contains filtered or unexported fields
}
HealthImpl is the handler implementation for Server Health
func (*HealthImpl) HandleHealthCheck ¶
func (h *HealthImpl) HandleHealthCheck(w http.ResponseWriter, r *http.Request)
HandleHealthCheck handles the request
func (*HealthImpl) PrepareShutdown ¶
func (h *HealthImpl) PrepareShutdown()
PrepareShutdown prepares the service for shutdown
func (*HealthImpl) Shutdown ¶
func (h *HealthImpl) Shutdown()
Shutdown cleans up everything and shuts down
type User ¶
type User interface { Startup() Shutdown() HandleGetUserByID(w http.ResponseWriter, r *http.Request) HandleGetUserByFilter(w http.ResponseWriter, r *http.Request) HandleCreateUser(w http.ResponseWriter, r *http.Request) HandleUpdateUser(w http.ResponseWriter, r *http.Request) }
User is the handler interface for Users
type UserImpl ¶
UserImpl is the handler implementation for Users
func (*UserImpl) HandleCreateUser ¶
func (h *UserImpl) HandleCreateUser(w http.ResponseWriter, r *http.Request)
HandleCreateUser handles the request
func (*UserImpl) HandleGetUserByFilter ¶
func (h *UserImpl) HandleGetUserByFilter(w http.ResponseWriter, r *http.Request)
HandleGetUserByFilter handles the request
func (*UserImpl) HandleGetUserByID ¶
func (h *UserImpl) HandleGetUserByID(w http.ResponseWriter, r *http.Request)
HandleGetUserByID handles the request
func (*UserImpl) HandleUpdateUser ¶
func (h *UserImpl) HandleUpdateUser(w http.ResponseWriter, r *http.Request)
HandleUpdateUser handles the request