mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 07:31:09 +02:00
29 lines
599 B
Go
29 lines
599 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
//go:build !enterprise
|
|
|
|
package dbplugin
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/hashicorp/vault/sdk/database/dbplugin/v5/proto"
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
)
|
|
|
|
type gRPCServer struct {
|
|
proto.UnimplementedDatabaseServer
|
|
logical.UnimplementedPluginVersionServer
|
|
|
|
// holds the non-multiplexed Database
|
|
// when this is set the plugin does not support multiplexing
|
|
singleImpl Database
|
|
|
|
// instances holds the multiplexed Databases
|
|
instances map[string]Database
|
|
factoryFunc func() (interface{}, error)
|
|
|
|
sync.RWMutex
|
|
}
|