service

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: MIT Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *slog.Logger, c Config) (*http.ServeMux, error)

Types

type Config

type Config struct {
	Log                                 *slog.Logger
	HttpServerEndpoint                  string
	MetricsServerEndpoint               string
	FrontEndUrl                         string
	ServerHttpURL                       string
	OIDCClientID                        string
	OIDCClientSecret                    string
	OIDCDiscoveryURL                    string
	OIDCEndSessionURL                   string
	Datastore                           generic.Datastore
	Repository                          *repository.Store
	MasterClient                        mdm.Client
	IpamClient                          ipamv1connect.IpamServiceClient
	Auditing                            auditing.Auditing
	Stage                               string
	RedisConfig                         *RedisConfig
	Admins                              []string
	MaxRequestsPerMinuteToken           int
	MaxRequestsPerMinuteUnauthenticated int
	IsStageDev                          bool
}

type RedisConfig

type RedisConfig struct {
	TokenClient     *redis.Client
	RateLimitClient *redis.Client
	InviteClient    *redis.Client
	AsyncClient     *redis.Client
}

Jump to

Keyboard shortcuts

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