api

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceId = "API"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpService

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

func NewHttp

func NewHttp(http retryhttp.Client, config config.Config) *HttpService

func (*HttpService) ForwardRequest

func (s *HttpService) ForwardRequest(ctx *fasthttp.RequestCtx, body []byte) error

func (*HttpService) Healthcheck

func (s *HttpService) Healthcheck() error

type Service

type Service interface {
	ForwardRequest(ctx *fasthttp.RequestCtx, body []byte) error
	Healthcheck() error
}

Jump to

Keyboard shortcuts

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