server

package
v0.0.0-...-9aad4f2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// We embed an http server
	http.Server

	Cfg *config.Config

	Repos          storage.Repositories
	FacebookApp    *fb.App
	AuthMiddleware gin.HandlerFunc
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) Server

New creates a new instance of the api server

func (*Server) GetRouter

func (s *Server) GetRouter()

Directories

Path Synopsis
handler
middleware

Jump to

Keyboard shortcuts

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