api

package
v1.0.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRouter

func GetRouter(config configuration.Config, repo Repo) http.Handler

func Start

func Start(ctx context.Context, config configuration.Config, repo Repo) (err error)

Types

type EndpointMethod

type EndpointMethod = func(config configuration.Config, router *httprouter.Router, repo Repo)

type Events

type Events struct{}

func (*Events) Find

func (this *Events) Find(config configuration.Config, router *httprouter.Router, repo Repo)

Find godoc @Summary finds event descriptions for event-worker @Description finds event descriptions for event-worker @Tags event-description @Produce json @Param local_device_id query string false "search event-descriptions by local device id" @Param local_service_id query string false "search event-descriptions by local service id" @Success 200 {array} []model.EventDesc @Failure 500 @Router /event-descriptions [get]

type Repo

type Repo interface {
	Find(localDeviceId string, localServiceId string) ([]model.EventDesc, error)
}

type SwaggerEndpoints

type SwaggerEndpoints struct{}

func (*SwaggerEndpoints) Swagger

func (this *SwaggerEndpoints) Swagger(config configuration.Config, router *httprouter.Router, repo Repo)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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