Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSLogDebugWriter

func NewSLogDebugWriter(logger *slog.Logger) slogDebugWriter

Types

type ClientCache

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

func NewClientCache

func NewClientCache(config ProxyConfig) (*ClientCache, error)

func (*ClientCache) Get

func (cache *ClientCache) Get(ctx context.Context, tenantID, clientSecret, user string) (graph.GraphMailClient, []graph.User, error)

func (*ClientCache) Key

func (cache *ClientCache) Key(tenantID, clientSecret string) string

type ProxyConfig

type ProxyConfig struct {
	ClientID, ClientCert string
	RedirectURI          string
	RateLimit            float64
}

func (ProxyConfig) CredOpts

func (config ProxyConfig) CredOpts() (graph.CredentialOptions, error)

Jump to

Keyboard shortcuts

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