api

package
v0.5.24 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewValidator

func NewValidator() *validator.Validate

Types

type API

type API struct {
	*User
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(user *User, config Config) *API

func (*API) Start

func (api *API) Start(port int) error

type Config added in v0.5.24

type Config struct {
	Prometheus         bool
	RateLimitRate      int
	RateLimitBurst     int
	RateLimitExpiresIn int
}

type Key added in v0.5.24

type Key string

type User

type User struct {
	*service.User
	*validator.Validate
	// contains filtered or unexported fields
}

func NewUser

func NewUser(u *service.User, apiKey Key) *User

func (*User) PostNewUser

func (u *User) PostNewUser(c echo.Context) error

func (*User) PutReset

func (u *User) PutReset(c echo.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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