api

package
v0.0.0-...-91de801 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomError

func NewCustomError(code int, errMsg, customMsg string) *customError

Types

type API

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

func New

func New(
	serv service.Service,
	dataValidator *validator.Validate,
	settings *settings.AppSettings,
) *API

func (*API) Start

func (a *API) Start(e *gin.Engine, address string) (*gin.Engine, error)

type ErrorResponse

type ErrorResponse struct {
	Field string `json:"field"`
	Tag   string `json:"tag"`
	Value string `json:"value,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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