v0.0.0-...-4b4c2ef Latest Latest

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

Go to latest
Published: May 9, 2024 License: GPL-3.0 Imports: 3 Imported by: 0




This section is empty.


View Source
var NstoreCtxKey = &ContextKey{"nstore"}
View Source
var TokenCtxKey = &ContextKey{"token"}


This section is empty.


type APIService

type APIService interface {
	StartService() error
	Results() string
	StopService(interface{}) error

APIService Nervatura API interface

type CLIService

type CLIService struct {
	Config        map[string]interface{}
	GetNervaStore func(database string) *nt.NervaStore

CLIService implements the Nervatura API service

func (*CLIService) DatabaseCreate

func (srv *CLIService) DatabaseCreate(apiKey string, options nt.IM) string

func (*CLIService) Delete

func (srv *CLIService) Delete(api *nt.API, options nt.IM) string

func (*CLIService) Function

func (srv *CLIService) Function(api *nt.API, options nt.IM) string

func (*CLIService) Get

func (srv *CLIService) Get(api *nt.API, options nt.IM) string

func (*CLIService) Report

func (srv *CLIService) Report(api *nt.API, options nt.IM) string

func (*CLIService) ReportDelete

func (srv *CLIService) ReportDelete(api *nt.API, options nt.IM) string

func (*CLIService) ReportInstall

func (srv *CLIService) ReportInstall(api *nt.API, options nt.IM) string

func (*CLIService) ReportList

func (srv *CLIService) ReportList(api *nt.API, options nt.IM) string

func (*CLIService) TokenDecode

func (srv *CLIService) TokenDecode(token string) string

func (*CLIService) TokenLogin

func (srv *CLIService) TokenLogin(token string, tokenKeys map[string]map[string]string) (*nt.API, string)

func (*CLIService) TokenRefresh

func (srv *CLIService) TokenRefresh(api *nt.API) string

func (*CLIService) Update

func (srv *CLIService) Update(api *nt.API, nervatype string, data []nt.IM) string

func (*CLIService) UserLogin

func (srv *CLIService) UserLogin(options nt.IM) string

func (*CLIService) UserPassword

func (srv *CLIService) UserPassword(api *nt.API, options nt.IM) string

func (*CLIService) View

func (srv *CLIService) View(api *nt.API, data []nt.IM) string

type ContextKey

type ContextKey struct {
	// contains filtered or unexported fields

func (*ContextKey) String

func (k *ContextKey) String() string

Jump to

Keyboard shortcuts

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