restapi

package
v0.0.0-...-4f702ff Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0.0"

Version of API

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*commonApp.App
	Server *http.Server
	// contains filtered or unexported fields
}

App is the application for API

func New

func New(commonApp *commonApp.App, cfg config.Configuration) *App

New func is a constructor for the ApiApp

func (*App) RegisterHandlers

func (app *App) RegisterHandlers()

RegisterHandlers sets up the routing of the HTTP handlers.

func (*App) Run

func (app *App) Run() error

Run is func to run the ApiApp

type Controller

type Controller interface {
	RegisterHandlers()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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