gateway

package
v0.0.0-...-bc169e4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package gateway is described reusable package for create gateway server

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxHeaderBytes = 1 << 20
	ReadTimeOut    = 10 * time.Second
	WriteTimeOut   = 10 * time.Second
)

Functions

This section is empty.

Types

type Gateway

type Gateway struct {
	*runtime.ServeMux
	Host           string
	Port           int
	MaxHeaderBytes int
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
}

func NewGateway

func NewGateway(host string, port int, opts ...runtime.ServeMuxOption) *Gateway

func (*Gateway) Run

func (gw *Gateway) Run(ctx context.Context, cfg *bootstrap.Config) error

Jump to

Keyboard shortcuts

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