resources

package
v0.63.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract added in v0.63.0

type Contract[Ent, ID, V any] struct {
	Subject func(testing.TB) ContractSubject[Ent, ID]
	MakeCtx func(testing.TB) context.Context
	MakeEnt func(testing.TB) Ent
	MakeV   func(testing.TB) V
}

func (Contract[Ent, ID, V]) Benchmark added in v0.63.0

func (c Contract[Ent, ID, V]) Benchmark(b *testing.B)

func (Contract[Ent, ID, V]) Spec added in v0.63.0

func (c Contract[Ent, ID, V]) Spec(s *testcase.Spec)

func (Contract[Ent, ID, V]) Test added in v0.63.0

func (c Contract[Ent, ID, V]) Test(t *testing.T)

type ContractSubject added in v0.63.0

type ContractSubject[Ent, ID any] struct {
	Resource interface {
		frameless.Creator[Ent]
		frameless.Finder[Ent, ID]
		frameless.Updater[Ent]
		frameless.Deleter[ID]
		frameless.CreatorPublisher[Ent]
		frameless.UpdaterPublisher[Ent]
		frameless.DeleterPublisher[ID]
	}
	MetaAccessor  frameless.MetaAccessor
	CommitManager frameless.OnePhaseCommitProtocol
}

type Subscriber added in v0.8.0

type Subscriber[Ent, ID any] interface {
	frameless.CreatorSubscriber[Ent]
	frameless.UpdaterSubscriber[Ent]
	frameless.DeleterSubscriber[ID]
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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