util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

* THE FILE WAS GENERATED WITH logparsergen --source=testingch.script --package=util * DO NOT TOUCH IT!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CHParams

type CHParams struct {
	Host     string
	Port     int
	User     string
	Password string
	DBName   string
}

CHParams clickhouse connection coordinates

func EnvCHParams

func EnvCHParams(connParams string) CHParams

EnvCHParams extracts clickhouse connection parameters from CLICKHOUSE environment variable

func ExtractCHParams

func ExtractCHParams(data string) (res CHParams)

ExtractCHParams extracts CH connection components from string [user[:password]@]host:port[/dbname]

func (CHParams) DBURL

func (ch CHParams) DBURL() string

DBURL is a URL generator for Mail.RU's clickhouse connector

func (CHParams) URL

func (ch CHParams) URL() string

URL for clickhouse connection

type Extractor

type Extractor struct {
	Rest      string
	Precision int
	Scale     int
}

Extractor ...

func (*Extractor) Extract

func (p *Extractor) Extract(line string) (bool, error)

Extract ...

Jump to

Keyboard shortcuts

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