MCPcopy Create free account
hub / github.com/bytebase/bytebase / New

Function New

backend/api/auth/auth.go:63–77  ·  view source on GitHub ↗

New returns a new API auth interceptor.

(
	store *store.Store,
	secret string,
	licenseService *enterprise.LicenseService,
	bus *bus.Bus,
	profile *config.Profile,
)

Source from the content-addressed store, hash-verified

61
62// New returns a new API auth interceptor.
63func New(
64 store *store.Store,
65 secret string,
66 licenseService *enterprise.LicenseService,
67 bus *bus.Bus,
68 profile *config.Profile,
69) *APIAuthInterceptor {
70 return &APIAuthInterceptor{
71 store: store,
72 secret: secret,
73 licenseService: licenseService,
74 bus: bus,
75 profile: profile,
76 }
77}
78
79// WrapUnary implements the ConnectRPC interceptor interface for unary RPCs.
80func (in *APIAuthInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc {

Callers 2

NewServerFunction · 0.92
configureGrpcRoutersFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected