README ¶ yago-locker config [locker] driver = "redis" driver_instance_id = "redis" [redis] addr = "127.0.0.1:6379" auth = "yourpass" db = 0 max_idle = 5 idle_timeout = 30 注: driver_instance_id 表示配置文件中的 redis 组件名 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New(id ...string) lock.ILocker Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(id ...string) lock.ILocker Types ¶ This section is empty. Source Files ¶ View all Source files locker.go Directories ¶ Show internal Expand all Path Synopsis etcd lock redis Click to show internal directories. Click to hide internal directories.