service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScriptServiceExecuteByIdAddr = "script/script/execute_by_id"
	ScriptServiceExecuteAddr     = "script/script/execute"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchTransformer

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

func NewBatchTransformer

func NewBatchTransformer(service ConverterService) BatchTransformer

func (BatchTransformer) ConvertBatch

func (t BatchTransformer) ConvertBatch(protocol structure.ProtocolVersion, list []entity.TransitDataRecord, identity int32, techRecord bool) ([]structure.ConvertResponse, error)

func (BatchTransformer) FilterDataBatch

func (t BatchTransformer) FilterDataBatch(list []entity.TransitDataRecord, identity int32, techRecord bool) ([]structure.ConvertResponse, error)

type ConverterService

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

func NewConverterService

func NewConverterService(client *backend.RxGrpcClient, callerId int) ConverterService

func (*ConverterService) ConvertAnySearchRequest

func (*ConverterService) FilterSearchRequest

type ScriptService

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

func NewScriptService

func NewScriptService(client *backend.RxGrpcClient, callerId int) *ScriptService

func (*ScriptService) Execute

func (s *ScriptService) Execute(req structure.ExecuteRequest, responseResPtr interface{}) (*structure.ScriptResponse, error)

func (*ScriptService) ExecuteById

func (s *ScriptService) ExecuteById(req structure.ExecuteByIdRequest, responseResPtr interface{}) (*structure.ScriptResponse, error)

type SearchService

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

func NewSeachService

func NewSeachService(client *backend.RxGrpcClient, callerId int) SearchService

func (*SearchService) GetPreferredSlicesCount

func (s *SearchService) GetPreferredSlicesCount(isTech bool) (*structure.PreferredSearchSlicesResponse, error)

func (*SearchService) ParallelSearchWithScrolls

func (s *SearchService) ParallelSearchWithScrolls(
	q query.Term, batchSize int, scrollTTL time.Duration, isTech bool,
	concurrentScrollsCount int, callback func(list []string) bool,
) error

func (*SearchService) Search

func (*SearchService) SearchCount

func (*SearchService) SearchIdList

Jump to

Keyboard shortcuts

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