server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package server contains all of the logic for the proxy server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FileDescriptors []*desc.FileDescriptor
	Port            uint16
}

Config holds the configuration for our server.

type Server

type Server struct {
	Port            uint16
	FileDescriptors []*desc.FileDescriptor
}

Server is the base type for our proxy.

func New

func New(cfg Config) *Server

New returns a new proxy server instance

func (*Server) Run

func (s *Server) Run()

Run starts the proxy server.

Jump to

Keyboard shortcuts

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