opaque

package
v0.0.104 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Package__pj9age = &core.Package{
		PackageName: "namespacelabs.dev/foundation/universe/db/postgres/opaque",
	}

	Provider__pj9age = core.Provider{
		Package:     Package__pj9age,
		Instantiate: makeDeps__pj9age,
	}
	Provider__pj9age__Database = core.Provider{
		Package:     Package__pj9age,
		Typename:    "Database",
		Instantiate: makeDeps__pj9age__Database,
	}
)
View Source
var File_universe_db_postgres_opaque_provider_proto protoreflect.FileDescriptor

Functions

func ProvideDatabase

func ProvideDatabase(ctx context.Context, db *Database, single ExtensionDeps, deps DatabaseDeps) (*postgres.DB, error)

Types

type Database

type Database struct {
	Name       string                      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SchemaFile *types.Resource             `protobuf:"bytes,2,opt,name=schema_file,json=schemaFile,proto3" json:"schema_file,omitempty"`
	HostedAt   *postgres.Database_Endpoint `protobuf:"bytes,3,opt,name=hosted_at,json=hostedAt,proto3" json:"hosted_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Database) Descriptor deprecated

func (*Database) Descriptor() ([]byte, []int)

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetHostedAt

func (x *Database) GetHostedAt() *postgres.Database_Endpoint

func (*Database) GetName

func (x *Database) GetName() string

func (*Database) GetSchemaFile

func (x *Database) GetSchemaFile() *types.Resource

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

func (x *Database) ProtoReflect() protoreflect.Message

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

type DatabaseDeps

type DatabaseDeps struct {
	Creds *creds.Creds
}

Scoped dependencies that are instantiated for each call to ProvideDatabase.

type ExtensionDeps

type ExtensionDeps struct {
	Wire base.WireDatabase
}

Dependencies that are instantiated once for the lifetime of the extension.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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