api

package
v0.0.0-...-6f8a6f0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Protected

func Protected(tokenMaker token.Maker) fiber.Handler

Types

type ListAccountsQueryParams

type ListAccountsQueryParams struct {
	PageId   int32 `validate:"required,min=1"`
	PageSize int32 `validate:"required,min=5,max=10"`
}

type ListUsersQueryParams

type ListUsersQueryParams struct {
	PageId   int32 `validate:"required,min=1"`
	PageSize int32 `validate:"required,min=5,max=10"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config util.Config, store db.Store) (*Server, error)

func (*Server) SetupRouter

func (server *Server) SetupRouter()

func (*Server) Start

func (server *Server) Start(address string) error

Jump to

Keyboard shortcuts

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