utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileOrContent

func FileOrContent(val string) string

FileOrContent checks if val exists as a file and then returns its content as a string. Otherwise val is returned

func GrpcClientConn

func GrpcClientConn(ctx context.Context, host, key, cert, caCert string) (*grpc.ClientConn, error)

func TlsConfig

func TlsConfig(key, cert, caCert string) (*tls.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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