Documentation ¶
Index ¶
- Constants
- func DialInsecure(target string) (cConn *grpc.ClientConn, err error)
- func DialWithSecurity(target string, clientCert, clientKey, serverName, serverCa string) (cConn *grpc.ClientConn, err error)
- func Watch(logger *zap.Logger, path string, batchFor time.Duration, processEvent func()) (func(), error)
Constants ¶
View Source
const Timeout = 2 * time.Second
Timeout grpc dial timeout
Variables ¶
This section is empty.
Functions ¶
func DialInsecure ¶
func DialInsecure(target string) (cConn *grpc.ClientConn, err error)
DialInsecure dial insecure grpc
func DialWithSecurity ¶
func DialWithSecurity( target string, clientCert, clientKey, serverName, serverCa string, ) (cConn *grpc.ClientConn, err error)
DialWithSecurity dial grpc with security
func Watch ¶
func Watch(logger *zap.Logger, path string, batchFor time.Duration, processEvent func()) (func(), error)
Watch watches the filesystem path `path`. When anything changes, changes are batched for the period `batchFor`, then `processEvent` is called.
Returns a destroy() function to terminate the watch.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.