changedetector

package
v0.7.1-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDescriptorSet

func GetDescriptorSet(data []byte) (*descriptor.FileDescriptorSet, error)

func GetImpactedEnumFieldInsideMessage

func GetImpactedEnumFieldInsideMessage(oldMessageDesc, newMessageDesc *descriptor.DescriptorProto) []string

func GetImpactedEnumFields

func GetImpactedEnumFields(oldEnumDesc, newEnumDesc *descriptor.EnumDescriptorProto) []string

func GetImpactedMessageFields

func GetImpactedMessageFields(oldMessageDesc, newMessageDesc *descriptor.DescriptorProto) []string

func IsEnumFieldChanged

func IsEnumFieldChanged(field1, field2 *descriptor.EnumValueDescriptorProto) bool

func IsEnumFieldDeprecated

func IsEnumFieldDeprecated(field1, field2 *descriptor.EnumValueDescriptorProto) bool

func IsMessageFieldChanged

func IsMessageFieldChanged(field1, field2 *descriptor.FieldDescriptorProto) bool

func IsMessageFieldDeprecated

func IsMessageFieldDeprecated(field1, field2 *descriptor.FieldDescriptorProto) bool

Types

type ChangeRequest

type ChangeRequest struct {
	NamespaceID string
	SchemaName  string
	Version     int32
	VersionID   string
	OldData     []byte
	NewData     []byte
	Depth       int32
}

type NotificationEvent

type NotificationEvent struct {
	ID          string
	Type        string
	EventTime   time.Time
	NamespaceID string
	SchemaID    int32
	VersionID   string
	Success     bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(nr newrelic.Service) *Service

func (*Service) IdentifySchemaChange

func (s *Service) IdentifySchemaChange(ctx context.Context, request *ChangeRequest) (*stencilv1beta1.SchemaChangedEvent, error)

Jump to

Keyboard shortcuts

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