website: golang.org/x/website/internal/proxy Index | Files

package proxy

import "golang.org/x/website/internal/proxy"

Package proxy proxies requests to the playground's compile and share handlers. It is designed to run only on the instance of godoc that serves golang.org.

Index

Package Files

proxy.go

func RegisterHandlers Uses

func RegisterHandlers(mux *http.ServeMux)

type Event Uses

type Event struct {
    Message string
    Kind    string        // "stdout" or "stderr"
    Delay   time.Duration // time to wait before printing Message
}

type Request Uses

type Request struct {
    Body string
}

type Response Uses

type Response struct {
    Errors string
    Events []Event
}

Package proxy imports 11 packages (graph). Updated 2019-12-06. Refresh now. Tools for package owners.