http

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package http contains implementation of kit service HTTP API.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidUrl = errors.New("missing or invalid url")

Functions

func MakeHandler

func MakeHandler(tracer opentracing.Tracer, svc webhooks.Service, logger log.Logger) http.Handler

MakeHandler returns a HTTP handler for API endpoints.

Types

type WebhooksPageRes added in v0.23.0

type WebhooksPageRes struct {
	Webhooks []webhookResponse `json:"webhooks"`
	// contains filtered or unexported fields
}

func (WebhooksPageRes) Code added in v0.23.0

func (res WebhooksPageRes) Code() int

func (WebhooksPageRes) Empty added in v0.23.0

func (res WebhooksPageRes) Empty() bool

func (WebhooksPageRes) Headers added in v0.23.0

func (res WebhooksPageRes) Headers() map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳