Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientTLS ¶
type ClientTLS struct { // Enable // 是否起效 Enable bool `json:"enable"` // RootCA // 根证书的PEM内容 RootCA []byte `json:"rootCa"` // Cert // Cert的PEM内容 Cert []byte `json:"cert"` // Key // Key的PEM内容 Key []byte `json:"key"` // Insecure // 是否跳过验证 Insecure bool `json:"insecure"` }
ClientTLS Fn的客户端TLS信息
type Discovery ¶
type Discovery interface { // Publish // 注册Fn Publish(name string) (registrationId string, err error) // UnPublish // 注销Fn UnPublish(registrationId string) (err error) // Get // 发现Fn注册信息 Get(name string) (registrations []Registration, err error) // IsLocaled // 判断是否是本地的 IsLocaled(name string) (ok bool) // Close // 关闭 Close() }
Discovery Fn的注册与发现
Click to show internal directories.
Click to hide internal directories.