util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectGrpc

func ConnectGrpc(cfg *config.CliArgs) (*grpc.ClientConn, error)

func NewClient added in v0.2.0

func NewClient(addr string, opts ...Option) (*grpc.ClientConn, error)

func ParseLogLevel

func ParseLogLevel(l string, defaultVal log.Level) log.Level

func ResolveEvent

func ResolveEvent(arg string) *commonv1.EventSelector

func SetupLogger

func SetupLogger(cfg *config.CliArgs) *log.Logger

Types

type Option added in v0.2.0

type Option func(*param)

func WithAddr added in v0.2.0

func WithAddr(a string) Option

func WithCA added in v0.2.0

func WithCA(filename string) Option

func WithCert added in v0.2.0

func WithCert(filename string) Option

func WithCliArgs added in v0.2.0

func WithCliArgs(args *config.CliArgs) Option

func WithKey added in v0.2.0

func WithKey(filename string) Option

func WithSkipVerify added in v0.2.0

func WithSkipVerify(b bool) Option

func WithTLSEnabled added in v0.2.0

func WithTLSEnabled(b bool) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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