Help us shape the future of Go! Take the 2026 Go Developer Survey

bencode

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseErr

func ResponseErr(c *app.RequestContext, err error)

func ResponseErrWithRetry added in v1.5.0

func ResponseErrWithRetry(c *app.RequestContext, err error)

func ResponseOk

func ResponseOk(c *app.RequestContext, data any)

Types

type BencodeRender

type BencodeRender struct {
	Data any
}

func (BencodeRender) Render

func (r BencodeRender) Render(resp *protocol.Response) error

func (BencodeRender) WriteContentType

func (r BencodeRender) WriteContentType(resp *protocol.Response)

type FastBencode added in v1.5.1

type FastBencode interface {
	Bencode(w io.Writer) error
}

Jump to

Keyboard shortcuts

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