requestutil

package
v0.0.0-...-572c485 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TraceLogBaseInfoFuncMap = map[string]func(interface{}) (any, bool){
	"collection_name": GetCollectionNameFromRequest,
	"db_name":         GetDbNameFromRequest,
	"partition_name":  GetPartitionNameFromRequest,
	"partition_names": GetPartitionNamesFromRequest,
	"field_name":      GetFieldNameFromRequest,
	"output_fields":   GetOutputFieldsFromRequest,
	"query_params":    GetQueryParamsFromRequest,
	"expr":            GetExprFromRequest,
	"search_params":   GetSearchParamsFromRequest,
	"dsl":             GetDSLFromRequest,
}

Functions

func GetCollectionNameFromRequest

func GetCollectionNameFromRequest(req any) (any, bool)

func GetConsistencyLevelFromRequst

func GetConsistencyLevelFromRequst(req interface{}) (commonpb.ConsistencyLevel, bool)

func GetDSLFromRequest

func GetDSLFromRequest(req interface{}) (any, bool)

func GetDbNameFromRequest

func GetDbNameFromRequest(req interface{}) (any, bool)

func GetExprFromRequest

func GetExprFromRequest(req interface{}) (any, bool)

func GetFieldNameFromRequest

func GetFieldNameFromRequest(req interface{}) (any, bool)

func GetOutputFieldsFromRequest

func GetOutputFieldsFromRequest(req interface{}) (any, bool)

func GetPartitionNameFromRequest

func GetPartitionNameFromRequest(req interface{}) (any, bool)

func GetPartitionNamesFromRequest

func GetPartitionNamesFromRequest(req interface{}) (any, bool)

func GetQueryParamsFromRequest

func GetQueryParamsFromRequest(req interface{}) (any, bool)

func GetSearchParamsFromRequest

func GetSearchParamsFromRequest(req interface{}) (any, bool)

func GetStatusFromResponse

func GetStatusFromResponse(resp interface{}) (*commonpb.Status, bool)

Types

type CollectionNameGetter

type CollectionNameGetter interface {
	GetCollectionName() string
}

type ConsistencyLevelGetter

type ConsistencyLevelGetter interface {
	GetConsistencyLevel() commonpb.ConsistencyLevel
}

type DBNameGetter

type DBNameGetter interface {
	GetDbName() string
}

type DSLGetter

type DSLGetter interface {
	GetDsl() string
}

type ExprGetter

type ExprGetter interface {
	GetExpr() string
}

type FieldNameGetter

type FieldNameGetter interface {
	GetFieldName() string
}

type OutputFieldsGetter

type OutputFieldsGetter interface {
	GetOutputFields() []string
}

type PartitionNameGetter

type PartitionNameGetter interface {
	GetPartitionName() string
}

type PartitionNamesGetter

type PartitionNamesGetter interface {
	GetPartitionNames() []string
}

type QueryParamsGetter

type QueryParamsGetter interface {
	GetQueryParams() []*commonpb.KeyValuePair
}

type SearchParamsGetter

type SearchParamsGetter interface {
	GetSearchParams() []*commonpb.KeyValuePair
}

type StatusGetter

type StatusGetter interface {
	GetStatus() *commonpb.Status
}

Jump to

Keyboard shortcuts

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