collect

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collect

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

func New

func New(l *zap.Logger, opts ...Option) (*Collect, error)

func (*Collect) GTagHTTPHandler

func (c *Collect) GTagHTTPHandler(w http.ResponseWriter, r *http.Request)

func (*Collect) MPv2HTTPHandler

func (c *Collect) MPv2HTTPHandler(w http.ResponseWriter, r *http.Request)

type Option

type Option func(*Collect) error

func WithGTagHTTPMiddlewares

func WithGTagHTTPMiddlewares(v ...gtaghttp.Middleware) Option

func WithMPv2HTTPMiddlewares

func WithMPv2HTTPMiddlewares(v ...mpv2http.Middleware) Option

func WithTagging

func WithTagging(v string) Option

func WithTaggingClient

func WithTaggingClient(v *http.Client) Option

Jump to

Keyboard shortcuts

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