mock

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummySite

func DummySite(owner models.IdentitySetable) models.Siteable

func GroupIdentitySet

func GroupIdentitySet(groupID string, groupEmail string) models.IdentitySetable

func UserIdentity

func UserIdentity(userID string, userEmail string) models.IdentitySetable

func UserMailboxInfo

func UserMailboxInfo() api.MailboxInfo

func UserSettings

func UserSettings() models.Userable

Types

type DeltaNextLinkValues

type DeltaNextLinkValues[T any] struct {
	Next   *string
	Delta  *string
	Values []T
}
func (dnl *DeltaNextLinkValues[T]) GetOdataDeltaLink() *string
func (dnl *DeltaNextLinkValues[T]) GetOdataNextLink() *string

func (*DeltaNextLinkValues[T]) GetValue

func (dnl *DeltaNextLinkValues[T]) GetValue() []T

type DeltaPager

type DeltaPager[T any] struct {
	ToReturn []PagerResult[T]
	// contains filtered or unexported fields
}

func (*DeltaPager[T]) GetPage

func (p *DeltaPager[T]) GetPage(
	context.Context,
) (pagers.DeltaLinkValuer[T], error)

func (*DeltaPager[T]) Reset

func (p *DeltaPager[T]) Reset(context.Context)
func (p *DeltaPager[T]) SetNextLink(string)

func (*DeltaPager[T]) ValidModTimes

func (p *DeltaPager[T]) ValidModTimes() bool

type Pager

type Pager[T any] struct {
	ToReturn []PagerResult[T]
	// contains filtered or unexported fields
}

func (*Pager[T]) GetPage

func (p *Pager[T]) GetPage(
	context.Context,
) (pagers.NextLinkValuer[T], error)
func (p *Pager[T]) SetNextLink(string)

func (*Pager[T]) ValidModTimes

func (p *Pager[T]) ValidModTimes() bool

type PagerResult

type PagerResult[T any] struct {
	Values     []T
	NextLink   *string
	DeltaLink  *string
	ResetDelta bool
	Err        error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL