service

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInterface

type DBInterface interface {
	Get(id string) (Info, error)
	GetList() ([]Info, error)
	Set(info Info) error
	Update(info Info) error
	Delete(name string) error
}

DBInterface interface

type Info added in v1.1.0

type Info struct {
	ID       string   `json:"id"`
	Services []string `json:"services"`
}

Info struct

type Query

type Query struct {
}

Query struct

func (Query) Delete

func (Query) Delete(id string) error

Delete deletes the service info that matches id

func (Query) Get

func (Query) Get(id string) (Info, error)

Get returns service info that matches id

func (Query) GetList

func (Query) GetList() ([]Info, error)

GetList returns the list of service info

func (Query) Set

func (Query) Set(info Info) error

Set sets the service info

func (Query) Update

func (Query) Update(info Info) error

Update updates the service info that matches id

Directories

Path Synopsis
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

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