Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = self.Name Using = self.Using Install = self.Install Uninstall = self.Uninstall )
View Source
var With _Option
Functions ¶
This section is empty.
Types ¶
type DistEntity ¶
type DistEntity struct { Id uid.Id `json:"id"` // 实体Id Nodes []Node `json:"nodes"` // 实体节点 Revision int64 `json:"revision"` // 数据版本号 }
DistEntity 分布式实体信息 +k8s:deepcopy-gen=true
func (*DistEntity) DeepCopy ¶
func (in *DistEntity) DeepCopy() *DistEntity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DistEntity.
func (*DistEntity) DeepCopyInto ¶
func (in *DistEntity) DeepCopyInto(out *DistEntity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DistEntityQuerierOptions ¶
type DistEntityQuerierOptions struct { EtcdClient *clientv3.Client EtcdConfig *clientv3.Config KeyPrefix string CacheExpiry time.Duration CustomUsername string CustomPassword string CustomAddresses []string CustomTLSConfig *tls.Config }
DistEntityQuerierOptions 所有选项
type IDistEntityQuerier ¶
type IDistEntityQuerier interface { // GetDistEntity 查询分布式实体 GetDistEntity(id uid.Id) (*DistEntity, bool) }
IDistEntityQuerier 分布式实体信息查询器
type Node ¶
type Node struct { Service string `json:"service"` // 服务名称 Id string `json:"id"` // 服务Id BroadcastAddr string `json:"broadcast_addr"` // 服务广播地址 BalanceAddr string `json:"balance_addr"` // 服务负载均衡地址 RemoteAddr string `json:"remote_addr"` // 远端服务节点地址 }
Node 实体节点信息 +k8s:deepcopy-gen=true
func (*Node) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (*Node) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.