server

package
v0.0.0-...-93bdfb3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Copyright (c) 2024 Owen Waller. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name  string `json:"name"` // the `json:` maps the json field names to the struct names
	Value string `json:"value"`
}

type Server

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

func NewServer

func NewServer(host, port, domain string) *Server

func (*Server) ReadConfig

func (s *Server) ReadConfig(configFileName string) error

func (*Server) SetRouteHandler

func (s *Server) SetRouteHandler(route string)

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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