Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultRetryDelay = 10 * time.Millisecond DefaultHeartbeatInterval = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeIDHelper ¶
type NodeIDHelper interface { GetAndAutoRenewalNodeID(ctx context.Context, req *nodeidresourcev1.GetNodeIdReq) (*nodeidresourcev1.GetNodeIdRespData, RenewalManager, error) GetNodeID(ctx context.Context, req *nodeidresourcev1.GetNodeIdReq) (*nodeidresourcev1.GetNodeIdRespData, error) RenewalNodeID(ctx context.Context, dataModel *nodeidresourcev1.GetNodeIdRespData) (RenewalManager, error) ReleaseNodeId(ctx context.Context, dataModel *nodeidresourcev1.GetNodeIdRespData) (*nodeidresourcev1.ReleaseNodeIdRespData, error) }
func NewNodeIDHelper ¶
func NewNodeIDHelper(nodeidSrv nodeidservicev1.SrvNodeIDV1Server, opts ...Option) NodeIDHelper
type Option ¶
type Option func(*options)
func WithHeartbeatInterval ¶
func WithLogger ¶
func WithRetryDelay ¶
type RenewalManager ¶
type RenewalResult ¶
type RenewalResult struct { Data *nodeidresourcev1.RenewalNodeIdRespData Err error LastTime time.Time }
Click to show internal directories.
Click to hide internal directories.