internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig[Config any](data []byte) (*Config, error)

ParseConfig parses a configuration for a datasource from the given marshaled JSON object.

Types

type Server

type Server[Config any] struct {
	api_adapter_v1.UnimplementedAdapterServer

	// Adapter is the high-level implementation of the service.
	Adapter framework.Adapter[Config]
}

Server is an implementation of the AdapterServer gRPC service which delegates the implementation of the RPCs to a high-level Adapter implementation, and translates and validates RPC requests and responses.

The Config type parameter must be a struct type into which the configuration JSON object can be unmarshaled into.

func (*Server[Config]) GetPage

Jump to

Keyboard shortcuts

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