server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TCPAddress      *net.TCPAddr
	LocalAddress    net.Addr
	Logger          logrus.FieldLogger
	ProvidersConfig *catalog.ProvidersConfig
}

Config conveys configurations for the Galadriel Server

type Server

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

Server represents a Galadriel Server.

func New

func New(config *Config) *Server

New creates a new instance of the Galadriel Server.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the Galadriel Server, initializing the components and listening for incoming requests. It performs the following steps: 1. Loads catalogs from the providers configuration. 2. Creates a JWT issuer based on the key manager from the catalogs. 3. Sets up a JWT validator. 4. Creates the endpoints server, which handles incoming requests. 5. Starts the endpoints server and listens for requests until the context is canceled.

Directories

Path Synopsis
api
admin
Package admin provides primitives to interact with the openapi HTTP API.
Package admin provides primitives to interact with the openapi HTTP API.
harvester
Package harvester provides primitives to interact with the openapi HTTP API.
Package harvester provides primitives to interact with the openapi HTTP API.
db

Jump to

Keyboard shortcuts

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