mstlystcdata

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 28 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, ps perms.Permissions, cfg *config.Config) *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) EnrichJobInfoSafe added in v0.8.6

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

func (*Enricher) EnrichJobInfoSafeFunc added in v0.8.10

func (e *Enricher) EnrichJobInfoSafeFunc(userInfo *userinfo.UserInfo) func(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)

Jump to

Keyboard shortcuts

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