Documentation
¶
Index ¶
Constants ¶
This section is empty.
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.