mstlystcdata

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotAvailablePlaceholder = "N/A"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache(p Params) (*Cache, error)

func (*Cache) GetHighestJobGrade added in v0.8.1

func (c *Cache) GetHighestJobGrade(job string) *users.JobGrade

func (*Cache) GetLawBooks added in v0.7.0

func (c *Cache) GetLawBooks() []*laws.LawBook

func (*Cache) GetSearcher

func (c *Cache) GetSearcher() *Searcher

func (*Cache) RefreshLaws added in v0.8.1

func (c *Cache) RefreshLaws(ctx context.Context, lawBookId uint64) error

type Enricher

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

func NewEnricher

func NewEnricher(cache *Cache, appCfg appconfig.IConfig) *Enricher

func (*Enricher) EnrichCategory added in v0.8.0

func (e *Enricher) EnrichCategory(doc common.ICategory)

func (*Enricher) EnrichJobInfo

func (e *Enricher) EnrichJobInfo(usr common.IJobInfo)

func (*Enricher) EnrichJobName

func (e *Enricher) EnrichJobName(usr common.IJobName)

func (*Enricher) GetJobByName

func (e *Enricher) GetJobByName(job string) *users.Job

func (*Enricher) GetJobGrade added in v0.7.3

func (e *Enricher) GetJobGrade(job string, grade int32) (*users.Job, *users.JobGrade)

type Params added in v0.8.0

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger *zap.Logger
	TP     *tracesdk.TracerProvider
	DB     *sql.DB
	Config *config.Config
}

type Searcher

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

func NewSearcher

func NewSearcher(cache *Cache) (*Searcher, error)

func (*Searcher) SearchJobs

func (s *Searcher) SearchJobs(ctx context.Context, search string, exactMatch bool) ([]*users.Job, error)

type UserAwareEnricher added in v0.8.20

type UserAwareEnricher struct {
	*Enricher
	// contains filtered or unexported fields
}

func NewUserAwareEnricher added in v0.8.20

func NewUserAwareEnricher(enricher *Enricher, ps perms.Permissions) *UserAwareEnricher

func (*UserAwareEnricher) EnrichJobInfoSafe added in v0.8.20

func (e *UserAwareEnricher) EnrichJobInfoSafe(userInfo *userinfo.UserInfo, usrs ...common.IJobInfo)

func (*UserAwareEnricher) EnrichJobInfoSafeFunc added in v0.8.20

func (e *UserAwareEnricher) EnrichJobInfoSafeFunc(userInfo *userinfo.UserInfo) func(usr common.IJobInfo)

Jump to

Keyboard shortcuts

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