connectionstring

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConnectionString

func ParseConnectionString(connectionString string) (hostPort string, dialOptions []grpc.DialOption, err error)

Parse grpc connectionstring `h2c|h2cs://[<token>@]host:port[?ServerCrt=<path to server cert>]` Attempt to create generic connectionstring format for grpc connections

schema

  • h2c: specifies insecure connection
  • h2cs: specifies secure connection Optional loads server cert with `ServerCrt` query option

token specifies token for token_auth interceptor

host:port required server address and port

ServerCrt

Path to server certificate (server.crt)
Works with TLS enabled (h2cs://...)
Has no effect if connection schema is insecure

Types

This section is empty.

Jump to

Keyboard shortcuts

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