common

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardMap

type CardMap struct {
	Name string `json:"name"`
	ID   int    `json:"id"`
}

CardMap .

type Service

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

Service is search service

func New

func New(c *conf.Config) (s *Service)

New new a search service

func (*Service) CardPreview

func (s *Service) CardPreview(c context.Context, cType string, id int64) (title string, err error)

CardPreview card preview

func (*Service) CardType

func (s *Service) CardType() (m *WebSearch)

CardType .

func (*Service) LogAction

func (s *Service) LogAction(c *bm.Context, typ, ps, pn int64, ctimeFrom, ctimeTo, uName string) (res *common.LogManagers, err error)

LogAction log action

type WebSearch

type WebSearch struct {
	CardList []*CardMap `json:"web_search"`
}

WebSearch .

Jump to

Keyboard shortcuts

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