Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveUser ¶
Resolves a user
This tries cache first, then fetches directly ¶
The direct fetch also adds to cache meaning that fetching the same user multiple times will lead to at maximum one API call (assuming the same session)
Types ¶
type Resolvable ¶
type Resolvable[T any] struct { // contains filtered or unexported fields }
func (*Resolvable[T]) Id ¶
func (r *Resolvable[T]) Id() string
Returns the ID of the resolvable entity
func (*Resolvable[T]) Resolve ¶
func (r *Resolvable[T]) Resolve(rc *restcli.RestClient) (*T, error)
Click to show internal directories.
Click to hide internal directories.