apiserver

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 54 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 package
Package config package

Jump to

Keyboard shortcuts

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