http

package
v0.0.0-...-e2ecec3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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

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

	// 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