srv

package
v0.0.0-...-839ea1c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package srv is related to the Cobra cmd serve. It contains a basic HTTP and WS server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version   string
	JWTSecret string
	Mode      string
	Port      int
}

Config of serve cmd

type Server

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

Server wraps an http server and more. It is setup by Config

func (*Server) Start

func (s *Server) Start()

Start the application

Directories

Path Synopsis
ws
Package ws is based on gorilla websockets.
Package ws is based on gorilla websockets.
client
Package client specific behavior for WS
Package client specific behavior for WS

Jump to

Keyboard shortcuts

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