config

package
v2.0.4-main.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Key = "msgraph"
	// The app registration Graph is reached with: its organisation, client id and secret, the address it signs in at, the scope its token
	// asks for and the address of Graph; each empty one taken from the sign-in a chat app of the organisation keeps
	TenantID     = Key + ".tenant_id"
	ClientID     = Key + ".client_id"
	ClientSecret = Key + ".client_secret"
	Authority    = Key + ".authority"
	Scope        = Key + ".scope"
	GraphURL     = Key + ".graph_url"
	// Address Graph posts the notifications of the profile to, empty for the server's public address
	NotificationURL = Key + ".notification_url"
	// Addresses notifications are taken from, any for none while the server answers this computer alone
	AllowedSources = Key + ".allowed_sources"
	// A secret every subscription carries in place of one made for each
	ClientState = Key + ".client_state"
	// How long before its end a subscription is renewed
	RenewWithin = Key + ".renew_within"
	// Largest batch taken, and how many notifications are remembered so one that comes again is taken once
	MaxBody  = Key + ".max_body"
	Receipts = Key + ".receipts"
)

Settings each profile has for reaching Microsoft Graph and taking its notifications

View Source
const (
	DefaultAuthority = "https://login.microsoftonline.com"
	DefaultGraphURL  = "https://graph.microsoft.com/v1.0"
	DefaultScope     = "https://graph.microsoft.com/.default"
)

Microsoft's own addresses and the scope of an app's token

View Source
const NotifyPath = "/api/msgraph/notify"

Path of the receiver among the routes of the HTTP API, under /p/<profile> for a profile other than the server's

Variables

This section is empty.

Functions

func Register

func Register(cfg *config.Config)

Types

This section is empty.

Jump to

Keyboard shortcuts

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