INNER CODE UNIT · Go

WithTLS

go-kratos/gateway · client/node.go:161

func WithTLS(in bool) NewNodeOption {
	return func(o *NodeOptions) {
		o.TLS = in
	}
}

func WithTLSConfigName(in string) NewNodeOption {
	return func(o *NodeOptions) {
		o.TLSConfigName = in
	}
}

func newNode(ctx *BuildContext, addr string, protocol config.Protocol, weight *int64, md map[string]string, version string, name string, opts ...NewNodeOption) *node {
	node := &node{
		protocol: protocol,
		address:  addr,
		weight:   weight,
		metadata: md,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…