service

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListResult

type ListResult struct {
	Items []Word `json:"items"`
	Total int64  `json:"total"`
}

type System

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

func NewSystem

func NewSystem(ctxGetter func() context.Context) *System

func (*System) DownloadCert

func (sys *System) DownloadCert() error

type Word

type Word model.Word

type WordService

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

func NewWordService

func NewWordService(q *query.Query, rc *relingo.Client, egc *egClient.Client) *WordService

func (*WordService) FindNewWords

func (ws *WordService) FindNewWords(q string, pageNo, pageSize int) *ListResult

func (*WordService) GetRootByName

func (ws *WordService) GetRootByName(word string) (*egModel.Vocabulary, error)

func (*WordService) SubmitVocabulary

func (ws *WordService) SubmitVocabulary(words []string) error

Jump to

Keyboard shortcuts

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