server

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config *Config, client *ent.Client) error

Types

type Config added in v0.4.0

type Config struct {
	Host           string
	Port           int32
	MaxConnections int32
	DebugEnabled   bool
	JWT            utils.JWTKeyStoreConfig
	ImageAPIURL    string
	ImageAPIKey    string
}

Config defines the configuration for the server

func (*Config) ListenEndpoint added in v0.4.0

func (cfg *Config) ListenEndpoint() string

ListenEndpoint builds the endpoint string (host + port)

func (*Config) SchemaVersionedEndpoint added in v0.4.0

func (cfg *Config) SchemaVersionedEndpoint(path string) string

SchemaVersionedEndpoint builds the schema endpoint string (schema + host + port + version + path)

Jump to

Keyboard shortcuts

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