apiserver

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 65 Imported by: 0

Documentation

Overview

Package apiserver is used to initialize the api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

APIServer represents an instance of a server

func New

func New(ctx context.Context, cfg *config.Config, logger logger.Logger, version string) (*APIServer, error)

New creates a new APIServer instance

func (*APIServer) Shutdown

func (api *APIServer) Shutdown(ctx context.Context)

Shutdown will shutdown the API server

func (*APIServer) Start

func (api *APIServer) Start()

Start will start the server

Directories

Path Synopsis
Package config contains the configuration for the API.
Package config contains the configuration for the API.

Jump to

Keyboard shortcuts

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