Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackendTypeJSON backendType = "json" BackendTypeBadger backendType = "badger" )
Variables ¶
This section is empty.
Functions ¶
func LoadStorageBackends ¶
func LoadStorageBackends(c storageConf) ( subordinateStorage storage.SubordinateStorageBackend, trustMarkedEntitiesStorage storage.TrustMarkedEntitiesStorageBackend, err error, )
LoadStorageBackends loads and returns the storage backends for the passed Config
Types ¶
type Config ¶
type Config struct {
Server lighthouse.ServerConf `yaml:"server"`
Logging loggingConf `yaml:"logging"`
Storage storageConf `yaml:"storage"`
Caching cachingConf `yaml:"cache"`
Signing signingConf `yaml:"signing"`
Endpoints Endpoints `yaml:"endpoints"`
Federation federationConf `yaml:"federation_data"`
}
Config holds configuration for the entity
type Endpoints ¶
type Endpoints struct {
FetchEndpoint fetchEndpointConf `yaml:"fetch"`
ListEndpoint lighthouse.EndpointConf `yaml:"list"`
ResolveEndpoint resolveEndpointConf `yaml:"resolve"`
TrustMarkStatusEndpoint lighthouse.EndpointConf `yaml:"trust_mark_status"`
TrustMarkedEntitiesListingEndpoint lighthouse.EndpointConf `yaml:"trust_mark_list"`
TrustMarkEndpoint trustMarkEndpointConf `yaml:"trust_mark"`
HistoricalKeysEndpoint lighthouse.EndpointConf `yaml:"historical_keys"`
EnrollmentEndpoint checkedEndpointConf `yaml:"enroll"`
EnrollmentRequestEndpoint lighthouse.EndpointConf `yaml:"enroll_request"`
TrustMarkRequestEndpoint lighthouse.EndpointConf `yaml:"trust_mark_request"`
EntityCollectionEndpoint collectionEndpointConf `yaml:"entity_collection"`
}
Endpoints holds configuration for the different possible endpoints
type LoggerConf ¶
LoggerConf holds configuration related to logging
Click to show internal directories.
Click to hide internal directories.