controller

package
v0.0.0-...-03e4fed Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(
	ctx context.Context,
	cancel context.CancelFunc,
	wg *sync.WaitGroup,
	service service.Service,
	port string,
) *Controller

func (*Controller) Start

func (s *Controller) Start()

type RequestCacheTags

type RequestCacheTags struct {
	Tags []string `json:"tags"`
}

type RequestPostCache

type RequestPostCache struct {
	Name string   `json:"name"`
	Lat  float64  `json:"lat"`
	Long float64  `json:"long"`
	Tags []string `json:"tags"`
}

type RequestPutCache

type RequestPutCache struct {
	Lat  float64  `json:"lat"`
	Long float64  `json:"long"`
	Tags []string `json:"tags"`
}

type ResponseCache

type ResponseCache struct {
	Id uint64 `json:"id"`
	RequestPostCache
}

type ResponseIds

type ResponseIds struct {
	Ids []uint64 `json:"ids"`
}

Jump to

Keyboard shortcuts

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