Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GorillaMuxRoute ¶
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 ¶
PathToGroupingKeyBQUDF (aealanlys.PathGrouping).PathToGroupingKeyBQUDF
パスからルート名に変換する BigQuery のユーザー定義関数の定義を生成する。 このUDFはなにも引っかからなければ "{method} {path}" という文字列を返す
Click to show internal directories.
Click to hide internal directories.