Documentation
¶
Index ¶
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State stores anythin that you would store in memory
func (*State) CallerIdToNameSpace ¶
func (*State) IsUnderStartup ¶
func (*State) LastCallIn ¶
Returns wether you can use the service or has to start it
func (*State) MarkAsDown ¶
Use this to remove the service after stopping the container
func (*State) MarkAsNotUnderStartup ¶
Use this to remove the service after stopping the container
func (*State) MarkAsUnderStartup ¶
Use this to remove the service after stopping the container
func (*State) SetCallerIdToNameSpace ¶
func (*State) SetLastCall ¶
Call this when proxying a request
Click to show internal directories.
Click to hide internal directories.