Go API Documentation

github.com/TykTechnologies/tyk-pump/serializer

No package summary is available.

Package

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

Constants

Vars

Types

AnalyticsSerializer

This type doesn't have documentation.

Field name Field type Comment
type

any

No comment on field.

MsgpSerializer

This type doesn't have documentation.

ProtobufSerializer

This type doesn't have documentation.

Functions

func NewAnalyticsSerializer

func (*MsgpSerializer) Decode

func (*MsgpSerializer) Encode

func (*MsgpSerializer) GetSuffix

func (*ProtobufSerializer) Decode

Uses: analyticsproto.AnalyticsRecord, proto.Unmarshal.

func (*ProtobufSerializer) Encode

Uses: proto.Marshal.

func (*ProtobufSerializer) GetSuffix

func (*ProtobufSerializer) TransformSingleProtoToAnalyticsRecord

Uses: analytics.AnalyticsRecord, analytics.City, analytics.Country, analytics.GeoData, analytics.GraphError, analytics.GraphQLOperations, analytics.GraphQLStats, analytics.Latency, analytics.Location, analytics.NetworkStats, analytics.OperationMutation, analytics.OperationQuery, analytics.OperationSubscription, analytics.OperationUnknown, analyticsproto.GraphQLOperations_OPERATION_MUTATION, analyticsproto.GraphQLOperations_OPERATION_QUERY, analyticsproto.GraphQLOperations_OPERATION_SUBSCRIPTION, time.Month.

func (*ProtobufSerializer) TransformSingleRecordToProto

Uses: analytics.OperationMutation, analytics.OperationQuery, analytics.OperationSubscription, analyticsproto.AnalyticsRecord, analyticsproto.City, analyticsproto.Country, analyticsproto.GeoData, analyticsproto.GraphQLOperations_OPERATION_MUTATION, analyticsproto.GraphQLOperations_OPERATION_QUERY, analyticsproto.GraphQLOperations_OPERATION_SUBSCRIPTION, analyticsproto.GraphQLOperations_OPERATION_UNKNOWN, analyticsproto.GraphQLStats, analyticsproto.Latency, analyticsproto.Location, analyticsproto.NetworkStats, analyticsproto.RepeatedFields.

Tests

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

Test functions

TestSerializer_Decode

References: analytics.AnalyticsRecord, assert.Equal, cmp.Equal, cmpopts.IgnoreUnexported, testing.T, time.Hour, time.Now.

TestSerializer_Encode

References: analytics.AnalyticsRecord, assert.Equal, assert.NotEqual, testing.T.

TestSerializer_GetSuffix

References: assert.Equal, testing.T.

Benchmark functions

BenchmarkMsgpEncoding

References: analytics.AnalyticsRecord, demo.GenerateRandomAnalyticRecord, rand.Intn.

BenchmarkProtobufEncoding

References: analytics.AnalyticsRecord, demo.GenerateRandomAnalyticRecord, rand.Intn.