auth

package
v0.0.0-...-47bb31f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetID

func GetID(ctx context.Context) int32

func NewAuth

func NewAuth(a auth.Auth)

func Server

func Server(opts ...Option) middleware.Middleware

Server returns a new server middleware for OpenTelemetry.

Types

type Option

type Option func(*options)

Option is tracing option.

func WithAuth

func WithAuth(auth auth.Auth) Option

WithAuth with auth interface{}.

func WithExclude

func WithExclude(exclude ...string) Option

WithExclude with recovery exclude.

func WithHeader

func WithHeader(header string) Option

WithHeader with recovery header.

func WithLogger

func WithLogger(logger log.Logger) Option

WithLogger with recovery logger.

func WithPrefix

func WithPrefix(prefix string) Option

WithPrefix with recovery prefix.

Jump to

Keyboard shortcuts

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