server

package
v0.0.0-...-04a8b18 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: MIT Imports: 11 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 {
	Logger *zap.Logger

	Debug bool

	Host     string
	Port     string
	CertFile string
	KeyFile  string

	StaticRoot    string
	TemplatesRoot string

	SlackClientID     string
	SlackClientSecret string
}

type Server

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

func New

func New(config Config) (*Server, error)

func (*Server) Start

func (s *Server) Start() error

Start starts HTTP or HTTPS server, depending on the presence of cert/key.

Jump to

Keyboard shortcuts

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