api

package
v0.0.0-...-d1aa883 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HttpServerPort    string        `env:"HTTP_SERVER_PORT" ,envDefault:"8080"`
	HttpServerTimeout time.Duration `env:"HTTP_SERVER_TIMEOUT" ,envDefault:"10s"`
}

type Server

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

func NewServer

func NewServer(cfg config.Config, store db.Store, logger *zap.Logger) *Server

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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