server

package
v0.0.0-...-3f1c2bf Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: Apache-2.0 Imports: 9 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 {
	Addr string
	Port int64
}

type RequestBody

type RequestBody struct {
	Config schemas.Config `json:"config"`
}

type Server

type Server struct {
	ServerConfig Config
	Router       *http.ServeMux
	Logger       *Logger.Logger
}

func New

func New() Server

func (Server) GetAddr

func (s Server) GetAddr() string

func (Server) Healthcheck

func (s Server) Healthcheck(w http.ResponseWriter, req *http.Request)

func (Server) SetDefaultSetting

func (s Server) SetDefaultSetting() Server

func (Server) SetRouter

func (s Server) SetRouter() Server

func (Server) TriggerDeploy

func (s Server) TriggerDeploy(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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