Go API Documentation

github.com/TykTechnologies/tyk/coprocess/grpc

No package summary is available.

Package

Files: 0. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.


Tests

Files: 3. Third party imports: 3. Imports from organisation: 0. Tests: 6. Benchmarks: 1.

Constants

const (
	grpcTestMaxSize	= 100000000
	grpcAuthority	= "localhost"

	testHeaderName	= "Testheader"
	testHeaderValue	= "testvalue"
)
const letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

Types

dispatcher

This type doesn't have documentation.

type dispatcher struct{}

Test functions

TestGRPCAuthHook

References: apidef.APIDefinition, fmt.Sprintf, gateway.APISpec, gateway.BaseExtractor, gateway.NewBaseMiddleware, http.MethodGet, http.StatusOK, test.TestCase, testing.T.

TestGRPCConfigData

References: http.MethodGet, http.StatusOK, test.TestCase, testing.T.

TestGRPCDispatch

References: bytes.Buffer, gateway.CreateSession, gateway.GenerateTestBinaryData, gateway.TestHttpResponse, header.ContentLength, http.MethodGet, http.StatusInternalServerError, http.StatusOK, ioutil.ReadAll, json.Unmarshal, multipart.NewWriter, strconv.Itoa, test.Flaky, test.TestCase, testing.T, user.SessionState.

TestGRPCIgnore

References: bytes.Contains, http.MethodGet, http.StatusBadRequest, http.StatusForbidden, http.StatusOK, test.TestCase.

TestGRPC_MultiAuthentication

References: apidef.AuthConfig, apidef.AuthToken, apidef.AuthTokenType, apidef.AuthTypeEnum, apidef.CustomAuth, apidef.GrpcDriver, apidef.VersionInfo, assert.Equal, assert.True, gateway.APISpec, gateway.BuildAPI, http.StatusOK, test.TestCase, testing.T, user.AccessDefinition, user.SessionState.

TestMain

References: context.Background, gateway.InitTestMain, os.Exit.

Benchmark functions

BenchmarkGRPCDispatch

References: gateway.CreateSession, http.MethodGet, http.StatusOK, test.TestCase, testing.B.