mock

package
v0.0.0-...-4fc5b5b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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