MCPcopy
hub / github.com/cilium/cilium / Init

Function Init

hubble/cmd/common/conn/conn.go:103–112  ·  view source on GitHub ↗

Init initializes common connection options. It MUST be called prior to any other package functions.

(vp *viper.Viper)

Source from the content-addressed store, hash-verified

101// Init initializes common connection options. It MUST be called prior to any
102// other package functions.
103func Init(vp *viper.Viper) error {
104 for _, fn := range GRPCOptionFuncs {
105 dialOpt, err := fn(vp)
106 if err != nil {
107 return err
108 }
109 grpcDialOptions = append(grpcDialOptions, dialOpt)
110 }
111 return nil
112}
113
114// New creates a new gRPC client connection to the target.
115func New(target string) (*grpc.ClientConn, error) {

Callers 1

NewWithViperFunction · 0.92

Calls 1

fnStruct · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…