Documentation
¶
Index ¶
- Constants
- func DefaultQueries() []string
- func NewActive(sig *Signal, interval time.Duration, state *active.State) signals.ActiveSignal
- func NormalizeAPIURL(raw string) (string, error)
- func SelectorTerms() []string
- type APIBackend
- type Backend
- type CLIBackend
- type Cache
- type CachePolicy
- type Kind
- type Option
- type Page
- type RateHint
- type Ref
- type Selector
- type Signal
- type Target
Constants ¶
View Source
const (
DefaultInterval = 60 * time.Second
)
View Source
const ViewerAlias = "@me"
Variables ¶
This section is empty.
Functions ¶
func DefaultQueries ¶
func DefaultQueries() []string
func NewActive ¶
NewActive polls the same *Signal.Fetch the query path uses. A separate loop would make "my merge requests" in `mino gitlab query` and in `mino serve` two code paths that drift apart.
func NormalizeAPIURL ¶
func SelectorTerms ¶
func SelectorTerms() []string
Types ¶
type APIBackend ¶
type CLIBackend ¶
type CLIBackend struct {
Hostname string
}
type Option ¶
type Option func(*signalOpts)
func WithDetailCache ¶
func WithDetailCache(c Cache, policy CachePolicy) Option
func WithRateHint ¶
func WithViewer ¶
type RateHint ¶
type RateHint struct {
// contains filtered or unexported fields
}
func NewRateHint ¶
func NewRateHint() *RateHint
type Ref ¶
type Selector ¶
type Selector struct {
Kind Kind
Target Target
Params url.Values
// contains filtered or unexported fields
}
func ParseSelector ¶
func (Selector) NeedsViewer ¶
func (*Selector) ResolveViewer ¶
ResolveViewer substitutes the client-side @me. GitLab has no server-side equivalent: author_username=@me matches a user literally named "@me" and returns 200 with an empty array, so an unresolved alias has to be an error rather than a pass-through.
Click to show internal directories.
Click to hide internal directories.