handler

package
v0.0.0-...-18fbfa8 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthEvent

type AuthEvent struct {
	Version string `json:"version,omitempty"`
}

type Handler

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

func New

func New(logger log.Logger, meter metric.Meter, tracer trace.Tracer, s Service) (*Handler, error)

func (*Handler) RouteEvent

type Service

type Service interface {
	ValidateToken(ctx context.Context, token string) bool
	GetPrincipalID() string
}

Service defines the interface for the authentication service.

Jump to

Keyboard shortcuts

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