Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
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 ¶
func (s *Server[Config]) GetPage(ctx context.Context, req *api_adapter_v1.GetPageRequest) (*api_adapter_v1.GetPageResponse, error)
Click to show internal directories.
Click to hide internal directories.