server

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDataRouter

func RegisterDataRouter(router datarouter.Router) func(Server) Server

RegisterDataRouter is a functional option that registers the data source router.

func RegisterProvider

func RegisterProvider(provider Provider) func(Server) Server

RegisterProvider is a functional option that registers the Provider meta server.

func RegisterResourceRouter

func RegisterResourceRouter(router resourcerouter.Router) func(Server) Server

RegisterResourceRouter is a functional option that registers the resource router.

Types

type Opt

type Opt func(Server) Server

Opt is a functional option for the provider server.

type Server

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

Server is our gRPC ProviderServer.

func New

func New(opts ...Opt) Server

New takes zero or more functional options and return a new Server.

func (Server) GetMetadata

GetMetadata is an optional tfprotov6 API that we're shimming here to update the latest terraform-plugin-go.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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