http

package
v0.0.0-...-e3c39ba Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 31 Imported by: 0

README

API endpoints

/api is the base path for all endpoints in this service.

Documentation

Index

Constants

View Source
const MAX_AGE = 300

MAX_AGE CORS - 5 minutes

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Common
	Ctx    context.Context
	I18n   *message.Printer
	Log    logger.Logger
	Config *config.Config
	Http   http_server.Config

	// Observability
	Tracer        trace.TracerProvider
	Monitoring    *monitoring.Monitoring
	PprofEndpoint profiling.PprofEndpoint
	AutoMaxPro    autoMaxPro.AutoMaxPro

	// Delivery
	RpcServer *rpc.Server

	// Infrastructure
	Link_rpc     link_rpc.LinkServiceClient
	Link_command link_cqrs.LinkCommandServiceClient
	Link_query   link_cqrs.LinkQueryServiceClient
	Sitemap_rpc  sitemap_rpc.SitemapServiceClient
}

Config HTTP-server config

type Server

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

API HTTP-server

func New

func New(params Config) (*Server, error)

New API Provider for DI

Directories

Path Synopsis
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
controllers

Jump to

Keyboard shortcuts

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