Module esnowflake_worker

.

Copyright © (C) 2017, tkyshm

Behaviours: gen_server.

Authors: tkyshm.

Description

Function Index

generate_id/1
generate_ids/2
start_link/2 Starts the server.

Function Details

generate_id/1

generate_id(Pid::pid()) -> integer() | {err_clock_backwards, term()}

generate_ids/2

generate_ids(Pid::pid(), Num::integer()) -> [integer()] | {err_clock_backwards, term()}

start_link/2

start_link(Id, IsRedis) -> {ok, Pid} | ignore | {error, Error}

Starts the server


Generated by EDoc