server

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

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName string `json:"app_name"`
	Host    string `json:"host"`
	Port    string `json:"port"`
}

Config is the configuration for the server

type Server

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

func New

func New(webserver webserver.WebServer, s3 *aws.S3Bucket, db database.Database, cache cache.Cache, log *zap.SugaredLogger, config *Config) *Server

New creates a new instance of a fiber web server

func (*Server) Listen

func (s *Server) Listen()

func (*Server) ListenTLS

func (s *Server) ListenTLS(certFile string, keyFile string)

Jump to

Keyboard shortcuts

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