dogmatypes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PkgPath = "github.com/dogmatiq/dogma"

PkgPath is the fully-qualified path to the Dogma package.

Variables

This section is empty.

Functions

func Implements

func Implements(t types.Type, i *types.Interface) (types.Type, bool)

Implements returns true if a value of type t (or a pointer to such a value) implements i.

Types

type Types

type Types struct {
	Application               *types.Interface
	AggregateMessageHandler   *types.Interface
	ProcessMessageHandler     *types.Interface
	IntegrationMessageHandler *types.Interface
	ProjectionMessageHandler  *types.Interface
}

Types is a container for types.Type representations of the types from the dogma package.

func FromPackage

func FromPackage(pkg *types.Package) (t *Types, err error)

FromPackage returns a Types struct containing the types from the given package, which is assumed to be the Dogma package itself.

func FromPackageImportedBy

func FromPackageImportedBy(pkg *types.Package) (*Types, bool, error)

FromPackageImportedBy returns a Type structs containing the types the Dogma package imported by pkg.

Jump to

Keyboard shortcuts

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