combinedservice

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package combinedservice - пакет для комбинированного http и WebSocket сервера

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server - обертка над http.Server с настройкой маршрутизации запросов

func NewServer

func NewServer(service Service, address string) (*Server, error)

NewServer - создание сервера

func (*Server) Start

func (s *Server) Start() error

Start - запуск сервера

func (*Server) Stop

func (s *Server) Stop() error

Stop - остановка сервера

type Service

type Service interface {
	httpservice.Service
	wsservice.Service
}

Service - интерфейс, объединяющий интерфейсы http.Service и ws.Service

Jump to

Keyboard shortcuts

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