config

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GRPC            string `json:"grpc"` // GRPC endpoint hosting all GRPC services
	A1UserData      string `json:"a1_user_data"`
	A1UserRolesData string `json:"a1_user_roles_data"`
	Logger          Logger `json:"logger"`
	Users           Users  `json:"users"` //!\\ only one users adapter
	TeamsAddress    string `json:"teams_address"`
	AuthzAddress    string `json:"authz_address"`
	certs.TLSConfig `json:"tls"`
}

Config is the config format for the main application.

type Logger

type Logger struct {
	// Level sets logging level severity.
	Level string `json:"level"`

	// Format specifies the format to be used for logging.
	Format string `json:"format"`
}

Logger holds configuration required to customize logging

type Users

type Users struct {
	Type string `json:"type"`

	Config server.UsersConfig `json:"config"`
}

Users is the type for "magically" unmarshalling users-adapter configs

func (*Users) UnmarshalJSON

func (u *Users) UnmarshalJSON(b []byte) error

UnmarshalJSON allows Users to implement the unmarshaler interface to dynamically determine the type of the users config.

Jump to

Keyboard shortcuts

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