services

package
v0.0.0-...-60d0383 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BucketSize = 100

Functions

func NewDictionary

func NewDictionary() *dictionaryService

func NewTranslate

func NewTranslate() *translateService

func NewVisitor

func NewVisitor(db *couchdb.DB) *visitorService

Types

type DictionaryService

type DictionaryService interface {
	GetDictionary(context.Context, string) ([]models.Word, error)
	GetDetail(context.Context, string, int) (string, error)
}

type TranslateService

type TranslateService interface {
	TranslateData(context.Context, []models.Word) []models.Word
}

type VisitorService

type VisitorService interface {
	CreateVisitor(ctx context.Context, vm models.Visitor) error
	GetListVisitor(ctx context.Context) (*alldocsResult, error)
}

Jump to

Keyboard shortcuts

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