server

package
v0.0.0-...-851a5c9 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package server provides the API server for the application.

Package server provides the API server for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Name() string
	Run() error
	Shutdown(ctx context.Context) error
}

Server is the interface for the server

func NewAPI

func NewAPI(opts TodoAPIServerOpts) (Server, error)

NewAPI returns a new instance of the Todo API server

func NewSwagger

func NewSwagger(opts SwaggerServerOpts) Server

NewSwagger returns a new instance of the Swagger server

type SwaggerServerOpts

type SwaggerServerOpts struct {
	ListenPort int
}

SwaggerServerOpts is the options for the swaggerServer

type TodoAPIServerOpts

type TodoAPIServerOpts struct {
	ListenPort int
	Config     model.Config
}

TodoAPIServerOpts is the options for the TodoAPIServer

Jump to

Keyboard shortcuts

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