Documentation ¶
Index ¶
- func AppendConfigToDisk(specObj *model.SpecObject, filename string) error
- func CloseTheCloser(r io.Closer)
- func CreateCorsObject() *cors.Cors
- func GetInternalServiceDomain(projectID, serviceID, version string) string
- func GetServiceDomain(projectID, serviceID string) string
- func GetToken(r *http.Request) (token string)
- type Debounce
- type DebounceArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendConfigToDisk ¶
func AppendConfigToDisk(specObj *model.SpecObject, filename string) error
AppendConfigToDisk creates a yml file or appends to existing
func CloseTheCloser ¶
CloseTheCloser closes an io read closer while explicitly ignoring the error
func CreateCorsObject ¶
CreateCorsObject returns a new cors object
func GetInternalServiceDomain ¶
GetInternalServiceDomain is used for getting internal service domain
func GetServiceDomain ¶
GetServiceDomain is used for getting the main service domain
Types ¶
type Debounce ¶
type Debounce struct {
// contains filtered or unexported fields
}
Debounce is a functionality which helps make sure a certain piece of logic doesn't get called multiple times.
type DebounceArray ¶
type DebounceArray struct {
// contains filtered or unexported fields
}
DebounceArray is the entity which holds the channels the callers are waiting on
func NewDebounceArray ¶
func NewDebounceArray() (*DebounceArray, chan error)
NewDebounceArray creates a new debounce array object
func (*DebounceArray) Add ¶
func (a *DebounceArray) Add(ch chan error) int
Add adds a new caller to the wait list
func (*DebounceArray) Notify ¶
func (a *DebounceArray) Notify(err error)
Notify signals all interested callers that the event is completed