http

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package http contains implementation of things service HTTP API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

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

MakeHandler returns a HTTP handler for API endpoints.

Types

type ThingsPageRes

type ThingsPageRes struct {
	Things []thingRes `json:"things"`
	// contains filtered or unexported fields
}

func (ThingsPageRes) Code

func (res ThingsPageRes) Code() int

func (ThingsPageRes) Empty

func (res ThingsPageRes) Empty() bool

func (ThingsPageRes) Headers

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

Jump to

Keyboard shortcuts

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