Documentation
¶
Index ¶
- Variables
- type APIService
- type CLIService
- func (srv *CLIService) DatabaseCreate(apiKey string, options nt.IM) string
- func (srv *CLIService) Delete(api *nt.API, options nt.IM) string
- func (srv *CLIService) Function(api *nt.API, options nt.IM) string
- func (srv *CLIService) Get(api *nt.API, options nt.IM) string
- func (srv *CLIService) Report(api *nt.API, options nt.IM) string
- func (srv *CLIService) ReportDelete(api *nt.API, options nt.IM) string
- func (srv *CLIService) ReportInstall(api *nt.API, options nt.IM) string
- func (srv *CLIService) ReportList(api *nt.API, options nt.IM) string
- func (srv *CLIService) TokenDecode(token string) string
- func (srv *CLIService) TokenLogin(token string, tokenKeys map[string]map[string]string) (*nt.API, string)
- func (srv *CLIService) TokenRefresh(api *nt.API) string
- func (srv *CLIService) Update(api *nt.API, nervatype string, data []nt.IM) string
- func (srv *CLIService) UserLogin(options nt.IM) string
- func (srv *CLIService) UserPassword(api *nt.API, options nt.IM) string
- func (srv *CLIService) View(api *nt.API, data []nt.IM) string
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
View Source
var NstoreCtxKey = &ContextKey{"nstore"}
View Source
var TokenCtxKey = &ContextKey{"token"}
Functions ¶
This section is empty.
Types ¶
type APIService ¶
type APIService interface { StartService() error Results() string ConnectApp(interface{}) 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) ReportDelete ¶
func (*CLIService) ReportInstall ¶
func (*CLIService) ReportList ¶
func (*CLIService) TokenDecode ¶
func (srv *CLIService) TokenDecode(token string) string
func (*CLIService) TokenLogin ¶
func (*CLIService) TokenRefresh ¶
func (srv *CLIService) TokenRefresh(api *nt.API) string
func (*CLIService) UserPassword ¶
type ContextKey ¶
type ContextKey struct {
// contains filtered or unexported fields
}
func (*ContextKey) String ¶
func (k *ContextKey) String() string
Click to show internal directories.
Click to hide internal directories.