http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(conf Config, cs ...Controller) *httputil.Server

NewServer creates a new http server

@title						Chatyx REST API
@version					1.0
@description				REST API for Chatyx backend application

@contact.name				Pavel Korchagin
@contact.email				mortalis94@gmail.com

@license.name				MIT
@license.url				https://opensource.org/license/mit/

@host						localhost:8080
@BasePath					/api/v1

@securityDefinitions.apikey	JWTAuth
@in							header
@name						Authorization

Types

type Config

type Config struct {
	config.Server
	Debug bool
	Cors  config.Cors
}

type Controller

type Controller interface {
	Register(mux *httprouter.Router)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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