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.
Click to show internal directories.
Click to hide internal directories.