sdk

package module
v0.0.0-...-4e12f68 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 2

README

servente-sdk

This package contains shared libraries for use between Servente and its providers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONAPI

type JSONAPI struct {
	ID string
}

JSONAPI helps Servente figure out which API versions are compatible

type JSONData

type JSONData struct {
	Message       string     `json:",omitempty"`
	Teams         []JSONTeam `json:",omitempty"`
	NextPageToken string     `json:",omitempty"`
	APIVersions   []JSONAPI  `json:",omitempty"`
}

JSONData represents the useful data inside the response

type JSONResponse

type JSONResponse struct {
	Error     bool
	Timestamp time.Time
	Data      *JSONData
}

JSONResponse the data struct used to render API responses

type JSONTeam

type JSONTeam struct {
	Name         string
	ID           string
	Email        string `json:",omitempty"`
	MembersCount int64  `json:",omitempty"`
}

JSONTeam only required parts here are Name & ID, the rest is extra data to enrich a user's experience

Jump to

Keyboard shortcuts

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