bencode

package
v0.0.0-...-1afe7ff Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 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

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

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