examples

package
v0.0.0-...-fc9b5f0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Timeout = 30 * time.Second

Variables

This section is empty.

Functions

func Start

func Start(port string, handler http.Handler) error

Types

type Client

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

func NewClient

func NewClient(apiURL string) *Client

func (*Client) WithDo

func (c *Client) WithDo(d func())

type ServerOption

type ServerOption func(server *http.Server)

func WithReadTimeout

func WithReadTimeout(t time.Duration) ServerOption

WithReadTimeout configure http.Server parameter ReadTimeout

func WithWriteTimeout

func WithWriteTimeout(t time.Duration) ServerOption

WithWriteTimeout configure http.Server parameter WriteTimeout

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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