mcpserver

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance interface {
	Address() string
	GetCollectionStateOrFail(t *testing.T, collection string) []*sink.Object
}

Instance is a new mcpserver instance. MCP Server is a generic MCP server implementation for testing purposes.

func NewSink

func NewSink(ctx resource.Context, cfg SinkConfig) (i Instance, err error)

NewSink returns a new instance of MCP Server in Sink mode.

func NewSinkOrFail

func NewSinkOrFail(t *testing.T, c resource.Context, cfg SinkConfig) Instance

NewSinkOrFail returns a new instance of MCP server in Sink mode or fails.

type SinkConfig

type SinkConfig struct {
	Collections []string
}

SinkConfig is configuration for the mcpserver for sink mode.

Jump to

Keyboard shortcuts

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