collector

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadGzip

func ReadGzip(body io.ReadCloser) ([]byte, error)

ReadGzip .

func ReadRequestBody

func ReadRequestBody(req *http.Request) ([]byte, error)

ReadRequestBody .

func ReadRequestBodyReader

func ReadRequestBodyReader(req *http.Request) (io.Reader, error)

ReadRequestBodyReader .

Types

type Authenticator

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

func NewAuthenticator

func NewAuthenticator(opts ...Option) *Authenticator

type Option

type Option func(authenticator *Authenticator)

func WithConfig

func WithConfig(cfg *config) Option

WithConfig with config

func WithLogger

func WithLogger(l logs.Logger) Option

WithLogger with Logger

func WithValidator

func WithValidator(v authentication.Validator) Option

WithValidator with validator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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