service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CACHE_DIR          = "cache"
	CACHE_AGE          = 86400
	PROMPTS_CACHE_NAME = "prompts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt struct {
	Title    string `json:"title"`
	Subtitle string `json:"subtitle"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	customPromptsFileName string,
	awesomePromptsDownloadLink string,
	awesomePromptsFileName string,
) *Service

func (*Service) Add

func (s *Service) Add(title string, subtitle string) func()

func (*Service) Delete

func (s *Service) Delete(input string) func()

func (*Service) Download

func (s *Service) Download() func()

func (*Service) Query

func (s *Service) Query(input string, all bool, action string) func()

func (*Service) Run

func (s *Service) Run(action func())

Jump to

Keyboard shortcuts

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