bqmatcher

package
v0.0.0-...-c23c075 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GorillaMuxRoute

type GorillaMuxRoute struct {
	Name    string
	Method  string
	Pattern string
}

gorilla.Mux 互換のパスパターンを指定する

type Matcher

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

Matcher aealanlys.PathGrouping

func CompileMuxRoutes

func CompileMuxRoutes(routes []GorillaMuxRoute) (Matcher, error)

CompileMuxRoutes ルート情報からパス名に分岐する

slice の順番通りの優先度でマッチします。すなわち同じパスが複数の定義にマッチする場合添字が若いもののほうがマッチします。 reflect によって gorilla/mux が内部的にマッチに使用している RegExp を抽出し、使用します。そのため意図せず panic する可能性があります

func (*Matcher) PathToGroupingKeyBQUDF

func (m *Matcher) PathToGroupingKeyBQUDF(funcname string) string

PathToGroupingKeyBQUDF (aealanlys.PathGrouping).PathToGroupingKeyBQUDF

パスからルート名に変換する BigQuery のユーザー定義関数の定義を生成する。 このUDFはなにも引っかからなければ "{method} {path}" という文字列を返す

Jump to

Keyboard shortcuts

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