MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Transact

Method Transact

pkg/oauth/server.go:62–64  ·  view source on GitHub ↗

Transact implements oauth_store.Interface.

(ctx context.Context, f func(ctx context.Context, st session.Store) error)

Source from the content-addressed store, hash-verified

60
61// Transact implements oauth_store.Interface.
62func (s *sessionStore) Transact(ctx context.Context, f func(ctx context.Context, st session.Store) error) error {
63 return s.TransactionalInterface.Transact(ctx, func(ctx context.Context, st oauth_store.Interface) error { return f(ctx, st) })
64}
65
66// NewServer returns a new OAuth server on top of the given store.
67func NewServer(c *component.Component, store oauth_store.TransactionalInterface, config Config, cspFunc func(config *Config, nonce string) string) (Server, error) {

Callers

nothing calls this directly

Calls 1

TransactMethod · 0.65

Tested by

no test coverage detected