service

package
v0.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package service implements API functions residing under /cofe/service. This path contains methods for querying services.

Package service implements API functions residing under /core/service. This path contains methods for listing services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	List(ctx context.Context, page, limit int) ([]Service, error)
}

API contains methods for listing services.

func NewAPI

func NewAPI(c client.Client) API

NewAPI creates a new service API instance with the given client.

type Service

type Service struct {
	Name     string `json:"name"`
	ID       string `json:"identifier"`
	Title    string `json:"title"`
	Category string `json:"category"`
}

Service describes a service provided by Anexia.

Jump to

Keyboard shortcuts

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