api

package
v0.0.0-...-21a8bdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2023 License: AGPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountsList

func AccountsList(_ ConfigService, db DatabaseService) echo.HandlerFunc

Types

type AccountsListResponse

type AccountsListResponse struct {
	Items      []presenter.Account `json:"items"`
	PageSize   int                 `json:"page_size"`
	PageNumber int                 `json:"page_number"`
	TotalCount int                 `json:"total_count"`
}

type ConfigService

type ConfigService interface {
	JWTSecret() string
	SessionSecret() string
	DisableRegistration() bool
	ProxyAuthUsernameHeader() string
	ProxyAuthNameHeader() string
}

type DatabaseService

type DatabaseService interface {
	FetchUserByUsername(ctx context.Context, email string) (dbx.User, error)
	CreateUser(ctx context.Context, arg dbx.CreateUserParams) (dbx.User, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL