http

package
v0.0.1-20240805-0001 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(instanceName string) (config.Config, error)

func GetDefaultServer

func GetDefaultServer() (*server.Server, error)

func GetServer

func GetServer(ctx context.Context, instanceName string) (*server.Server, error)

GetServer -> gets the existing created instance if it's already created... if it's not created, then it's being created

func New

func New(
	ctx context.Context,
	config config.Config,
) (*server.Server, error)

New -> creates a new server based on the provided configuration

func NewServer

func NewServer(ctx context.Context, instanceName string) (*server.Server, error)

NewServer -> Generates a new instance based on the configuration! Multiple instances can be generated based on the same configuration

Types

This section is empty.

Directories

Path Synopsis
middlewares
routes

Jump to

Keyboard shortcuts

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