Versions in this module Expand all Collapse all v0 v0.0.1 Jan 17, 2018 Changes in this version + type State struct + func NewState(redisClient *redis.Client) *State + func (s *State) CallerIdToNameSpace(callerId string) (string, error) + func (s *State) Decrement(token string) error + func (s *State) DecrementBy(token string, amt int64) error + func (s *State) GetQuota(tokenId string) (int64, error) + func (s *State) IncrementBy(tokenId string, amt int64) error + func (s *State) IsUnderStartup(author, projectName string) (bool, error) + func (s *State) IsUp(author, projectName string) (bool, error) + func (s *State) LastCallIn(author, projectName string, d time.Duration) (bool, error) + func (s *State) MarkAsDown(author, projectName string) error + func (s *State) MarkAsNotUnderStartup(author, projectName string) error + func (s *State) MarkAsUnderStartup(author, projectName string) error + func (s *State) MarkAsUp(author, projectName string) error + func (s *State) Port(author, projectName string) (int64, error) + func (s *State) SetCallerIdToNameSpace(callerId, namespace string) error + func (s *State) SetLastCall(author, projectName string) error + func (s *State) SetPort(author, projectName string, port int) error + func (s *State) SetQuota(tokenId string, quota int64) error