Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultTries = 3
)
Functions ¶
func GetIdGeneratorByGRPCAPI ¶
func GetIdGeneratorByGRPCAPI(serviceAPIManager clientutil.ServiceAPIManager, req *nodeidresourcev1.GetNodeIdReq, opts ...Option) (idpkg.Snowflake, func(), error)
func GetIdGeneratorByHTTPAPI ¶
func GetIdGeneratorByHTTPAPI(serviceAPIManager clientutil.ServiceAPIManager, req *nodeidresourcev1.GetNodeIdReq, opts ...Option) (idpkg.Snowflake, func(), error)
Types ¶
type Option ¶
type Option func(*options)
func WithLogger ¶
func WithMustGetNodeIdForAPI ¶
func WithServerName ¶
func WithServerName(serverName clientutil.ServiceName) Option
Click to show internal directories.
Click to hide internal directories.