transport

package
v0.0.0-...-552fd6e Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(settingRepo repo.SettingRepo) http.Handler

Types

type Server

type Server struct {
}

func (*Server) GetKillSignalChan

func (s *Server) GetKillSignalChan() chan os.Signal

func (*Server) StartServer

func (s *Server) StartServer(serverUrl string, handler http.Handler) *http.Server

func (*Server) WaitForKillSignal

func (s *Server) WaitForKillSignal(killSignalChan <-chan os.Signal)

type SettingController

type SettingController struct {
	SettingRepo repo.SettingRepo
}

func (*SettingController) GetSettings

func (c *SettingController) GetSettings(w http.ResponseWriter, req *http.Request)

func (*SettingController) SetSettings

func (c *SettingController) SetSettings(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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