construct

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GrpcClientConnectionType = "grpc.ClientConn"

Variables

View Source
var DefaultSpecificationStore = map[string]Specification{}
View Source
var Factories = map[string]Constructor{}

Functions

func CreateClientInstance

func CreateClientInstance(ctx context.Context, spec interface{}) (interface{}, error)

func CreateGrpcClientConnection

func CreateGrpcClientConnection(ctx context.Context, spec interface{}) (interface{}, error)

func CreateInstance

func CreateInstance(ctx context.Context, kind string, spec interface{}) (interface{}, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewDefaultIdentityPersistenceClient

func NewDefaultIdentityPersistenceClient(ctx context.Context) (*Client, error)

func NewIdentityPersistenceClient

func NewIdentityPersistenceClient(ctx context.Context, spec interface{}) (*Client, error)

type ClientSpecification

type ClientSpecification struct {
	ServerConnection GrpcConnectionSpec `yaml:"server_connection"`
}

type Constructor

type Constructor func(ctx context.Context, Specification interface{}) (interface{}, error)

type GrpcConnectionSpec

type GrpcConnectionSpec struct {
	Address     string
	PrivateKey  string
	Certificate string
}

type Specification

type Specification struct {
	Type    string
	Details interface{}
}

Jump to

Keyboard shortcuts

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