Documentation ¶
Index ¶
- func CheckForID(url *url.URL) string
- func GetProperty(key string) string
- func IsValidEndpoint(endpoint string) bool
- func LogInit() *log.Logger
- func NewID() string
- func SanitizeInput(input string) string
- func StringSliceContains(slice []string, target string) bool
- func ValidateIcon(icon io.Reader) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForID ¶
CheckForID checks to see if an ID (e.g. 59317629-bcc3-11e6-9f43-6c4008bcfa84) has been appended to the end of the specified URL. If one has, then that ID will be returned. If not, then an empty string is returned ("").
func GetProperty ¶
GetProperty returns the value from the environment or key/value store
func IsValidEndpoint ¶
IsValidEndpoint() returns true if endpoint is an endpoint being served by the SkillDirectory server AND doesn't contain an ID.
func SanitizeInput ¶
Escapes the single quotes in the Cassandra query
func StringSliceContains ¶
StringSliceContains() returns true if slice contains target, false if not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.