service

package
v0.0.0-...-74c6e08 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Things

type Things interface {
	SaveThing(ctx ctxt, thingModel *models.Thing) (*models.Thing, error)
	GetThing(ctx ctxt, thingId string) (*models.Thing, error)
	DeleteThing(ctx ctxt, thingId string) (string, error)
	UpdateThing(ctx ctxt, thingModel *models.Thing) (*models.Thing, error)
	UserOfThingOrAdmin(ctx ctxt, token string, thingId string) (string, error)
	UserOfThingOnly(ctx ctxt, token string, thingId string) (string, error)
	UserOnly(ctx ctxt, token string) (string, error)
}

func New

func New(repository models.ThingsRepository, auth client.Auth) Things

/ New creates a new thing service

Jump to

Keyboard shortcuts

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