Documentation ¶
Index ¶
- Constants
- func Cleanup(closeReader func() error, err *error)
- func CreateSearchBySha1AndRepoAqlQuery(repo string, sha1s []string) string
- func GroupItems(sliceToGroup []string, groupSize int) [][]string
- func Optional(optionalValue string) (value string)
- func OptionalVcsUrl(vcs *entities.Vcs) (value string)
- type StringSet
Constants ¶
View Source
const DefaultValue = "N/A"
Variables ¶
This section is empty.
Functions ¶
func GroupItems ¶
AQL requests have a size limit, therefore, we split the requests into small groups. Group large slice into small groups, for example: sliceToGroup = []string{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}; groupSize = 3 returns : [['0' '1' '2'] ['3' '4' '5'] ['6' '7' '8'] ['9]]
func OptionalVcsUrl ¶
Types ¶
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
StringSet is a set of unique strings and it's not thread-safe.
func NewStringSet ¶
func (*StringSet) Add ¶
Add adds a string to the set. If string is already in the set, it has no effect.
func (*StringSet) TotalStrings ¶
Click to show internal directories.
Click to hide internal directories.