go-playground

module
v0.0.0-...-b446b4a Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT

README

Go Playground

Explorations of new Go features and Go implementations of web tech.

Updates

grace
  • Go 1.9: func (srv *Server) RegisterOnShutdown(f func())
  • Go 1.13
type Server struct {
    // ...

    // BaseContext optionally specifies a function that returns
    // the base context for incoming requests on this server.
    // The provided Listener is the specific Listener that's
    // about to start accepting requests.
    // If BaseContext is nil, the default is context.Background().
    // If non-nil, it must return a non-nil context.
    BaseContext func(net.Listener) context.Context // Go 1.13

    // ConnContext optionally specifies a function that modifies
    // the context used for a new connection c. The provided ctx
    // is derived from the base context and has a ServerContextKey
    // value.
    ConnContext func(ctx context.Context, c net.Conn) context.Context // Go 1.13
}

Directories

Path Synopsis
cgo
rpc
v3 of the SSE demo by ShevaXu, see README for more.
v3 of the SSE demo by ShevaXu, see README for more.
rpc/haberdasher
Package haberdasher is a generated twirp stub package.
Package haberdasher is a generated twirp stub package.
udp
lib

Jump to

Keyboard shortcuts

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