Documentation ¶
Index ¶
Constants ¶
View Source
const ( AdminPosition = "admin" ManagerPosition = "manager" AccountantPosition = "accountant" WorkerPosition = "worker" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountCreatedMessage ¶
type AuthAccount ¶
type AuthenticateResponse ¶
type AuthenticateResponse struct {
AuthAccount AuthAccount `json:"account"`
}
type BaseKafkaMessage ¶
type CreateAccountRequest ¶
type CreateAccountResponse ¶
type CreateAccountResponse struct {
AuthAccount AuthAccount `json:"account"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(authAccountsRepo *auth_accounts_repo.Repository) (*Service, error)
func (*Service) Authenticate ¶
Authenticate godoc @Summary Authenticate @Description Authenticate @Tags auth @Accept json @Produce json @Success 200 {object} AuthenticateResponse @Router /api/v1/auth/authenticate [post] @Security BasicAuth
func (*Service) CreateAccount ¶
CreateTask godoc @Summary Create new auth account @Description Create new auth account @Tags accounts @Accept json @Produce json @Param ecu body CreateTaskRequest @Success 201 {object} CreateTaskResponse @Router /api/v1/auth/accounts [post]
func (*Service) SetupRoutes ¶
Click to show internal directories.
Click to hide internal directories.