data

package
v0.0.0-...-9653296 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 10 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewData, NewEsClient)

ProviderSet is data providers.

Functions

func NewEsClient

func NewEsClient(c *conf.Data, logger log.Logger) (*elastic.Client, error)

Types

type Data

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

Data .

func NewData

func NewData(c *conf.Data, cli *elastic.Client, logPinter logPrinter.LogerPrinter, logger log.Logger) (*Data, func(), error)

NewData .

func (Data) AddClassInfo

func (d Data) AddClassInfo(ctx context.Context, classInfo biz.ClassInfo) error

func (Data) RemoveClassInfo

func (d Data) RemoveClassInfo(ctx context.Context, xnm, xqm string)

func (Data) SearchClassInfo

func (d Data) SearchClassInfo(ctx context.Context, keyWords string, xnm, xqm string) ([]biz.ClassInfo, error)

Jump to

Keyboard shortcuts

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