Help us shape the future of Go! Take the 2026 Go Developer Survey

statistics

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Statistics_StatisticsForEventStore_FullMethodName = "/Cratis.Chronicle.Contracts.Statistics.Statistics/StatisticsForEventStore"
	Statistics_StatisticsForNamespace_FullMethodName  = "/Cratis.Chronicle.Contracts.Statistics.Statistics/StatisticsForNamespace"
)

Variables

View Source
var (
	ValidationResultSeverity_name = map[int32]string{
		0: "Unknown",
		1: "Information",
		2: "Warning",
		3: "Error",
	}
	ValidationResultSeverity_value = map[string]int32{
		"Unknown":     0,
		"Information": 1,
		"Warning":     2,
		"Error":       3,
	}
)

Enum value maps for ValidationResultSeverity.

View Source
var File_statistics_proto protoreflect.FileDescriptor
View Source
var Statistics_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Cratis.Chronicle.Contracts.Statistics.Statistics",
	HandlerType: (*StatisticsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StatisticsForEventStore",
			Handler:    _Statistics_StatisticsForEventStore_Handler,
		},
		{
			MethodName: "StatisticsForNamespace",
			Handler:    _Statistics_StatisticsForNamespace_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "statistics.proto",
}

Statistics_ServiceDesc is the grpc.ServiceDesc for Statistics service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStatisticsServer

func RegisterStatisticsServer(s grpc.ServiceRegistrar, srv StatisticsServer)

Types

type EventStatisticsResponse

type EventStatisticsResponse struct {
	TotalEvents  int64             `protobuf:"varint,1,opt,name=TotalEvents,proto3" json:"TotalEvents,omitempty"`
	EventTypes   int32             `protobuf:"varint,2,opt,name=EventTypes,proto3" json:"EventTypes,omitempty"`
	Namespaces   int32             `protobuf:"varint,3,opt,name=Namespaces,proto3" json:"Namespaces,omitempty"`
	PerEventType []*EventTypeCount `protobuf:"bytes,4,rep,name=PerEventType,proto3" json:"PerEventType,omitempty"`
	// contains filtered or unexported fields
}

func (*EventStatisticsResponse) Descriptor deprecated

func (*EventStatisticsResponse) Descriptor() ([]byte, []int)

Deprecated: Use EventStatisticsResponse.ProtoReflect.Descriptor instead.

func (*EventStatisticsResponse) GetEventTypes

func (x *EventStatisticsResponse) GetEventTypes() int32

func (*EventStatisticsResponse) GetNamespaces

func (x *EventStatisticsResponse) GetNamespaces() int32

func (*EventStatisticsResponse) GetPerEventType

func (x *EventStatisticsResponse) GetPerEventType() []*EventTypeCount

func (*EventStatisticsResponse) GetTotalEvents

func (x *EventStatisticsResponse) GetTotalEvents() int64

func (*EventStatisticsResponse) ProtoMessage

func (*EventStatisticsResponse) ProtoMessage()

func (*EventStatisticsResponse) ProtoReflect

func (x *EventStatisticsResponse) ProtoReflect() protoreflect.Message

func (*EventStatisticsResponse) Reset

func (x *EventStatisticsResponse) Reset()

func (*EventStatisticsResponse) String

func (x *EventStatisticsResponse) String() string

type EventTypeCount

type EventTypeCount struct {
	EventType string `protobuf:"bytes,1,opt,name=EventType,proto3" json:"EventType,omitempty"`
	Count     int64  `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"`
	// contains filtered or unexported fields
}

func (*EventTypeCount) Descriptor deprecated

func (*EventTypeCount) Descriptor() ([]byte, []int)

Deprecated: Use EventTypeCount.ProtoReflect.Descriptor instead.

func (*EventTypeCount) GetCount

func (x *EventTypeCount) GetCount() int64

func (*EventTypeCount) GetEventType

func (x *EventTypeCount) GetEventType() string

func (*EventTypeCount) ProtoMessage

func (*EventTypeCount) ProtoMessage()

func (*EventTypeCount) ProtoReflect

func (x *EventTypeCount) ProtoReflect() protoreflect.Message

func (*EventTypeCount) Reset

func (x *EventTypeCount) Reset()

func (*EventTypeCount) String

func (x *EventTypeCount) String() string

type QueryResult_EventStatisticsResponse

type QueryResult_EventStatisticsResponse struct {
	CorrelationId       *bcl.Guid                `protobuf:"bytes,1,opt,name=CorrelationId,proto3" json:"CorrelationId,omitempty"` // default value could not be applied: 00000000-0000-0000-0000-000000000000
	IsAuthorized        bool                     `protobuf:"varint,2,opt,name=IsAuthorized,proto3" json:"IsAuthorized,omitempty"`
	ValidationResults   []*ValidationResult      `protobuf:"bytes,3,rep,name=ValidationResults,proto3" json:"ValidationResults,omitempty"`
	ExceptionMessages   []string                 `protobuf:"bytes,4,rep,name=ExceptionMessages,proto3" json:"ExceptionMessages,omitempty"`
	ExceptionStackTrace string                   `protobuf:"bytes,5,opt,name=ExceptionStackTrace,proto3" json:"ExceptionStackTrace,omitempty"`
	Data                *EventStatisticsResponse `protobuf:"bytes,6,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResult_EventStatisticsResponse) Descriptor deprecated

func (*QueryResult_EventStatisticsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryResult_EventStatisticsResponse.ProtoReflect.Descriptor instead.

func (*QueryResult_EventStatisticsResponse) GetCorrelationId

func (x *QueryResult_EventStatisticsResponse) GetCorrelationId() *bcl.Guid

func (*QueryResult_EventStatisticsResponse) GetData

func (*QueryResult_EventStatisticsResponse) GetExceptionMessages

func (x *QueryResult_EventStatisticsResponse) GetExceptionMessages() []string

func (*QueryResult_EventStatisticsResponse) GetExceptionStackTrace

func (x *QueryResult_EventStatisticsResponse) GetExceptionStackTrace() string

func (*QueryResult_EventStatisticsResponse) GetIsAuthorized

func (x *QueryResult_EventStatisticsResponse) GetIsAuthorized() bool

func (*QueryResult_EventStatisticsResponse) GetValidationResults

func (x *QueryResult_EventStatisticsResponse) GetValidationResults() []*ValidationResult

func (*QueryResult_EventStatisticsResponse) ProtoMessage

func (*QueryResult_EventStatisticsResponse) ProtoMessage()

func (*QueryResult_EventStatisticsResponse) ProtoReflect

func (*QueryResult_EventStatisticsResponse) Reset

func (*QueryResult_EventStatisticsResponse) String

type StatisticsClient

type StatisticsClient interface {
	StatisticsForEventStore(ctx context.Context, in *StatisticsForEventStoreRequest, opts ...grpc.CallOption) (*QueryResult_EventStatisticsResponse, error)
	StatisticsForNamespace(ctx context.Context, in *StatisticsForNamespaceRequest, opts ...grpc.CallOption) (*QueryResult_EventStatisticsResponse, error)
}

StatisticsClient is the client API for Statistics service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewStatisticsClient

func NewStatisticsClient(cc grpc.ClientConnInterface) StatisticsClient

type StatisticsForEventStoreRequest

type StatisticsForEventStoreRequest struct {
	EventStore string `protobuf:"bytes,1,opt,name=EventStore,proto3" json:"EventStore,omitempty"`
	// contains filtered or unexported fields
}

func (*StatisticsForEventStoreRequest) Descriptor deprecated

func (*StatisticsForEventStoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use StatisticsForEventStoreRequest.ProtoReflect.Descriptor instead.

func (*StatisticsForEventStoreRequest) GetEventStore

func (x *StatisticsForEventStoreRequest) GetEventStore() string

func (*StatisticsForEventStoreRequest) ProtoMessage

func (*StatisticsForEventStoreRequest) ProtoMessage()

func (*StatisticsForEventStoreRequest) ProtoReflect

func (*StatisticsForEventStoreRequest) Reset

func (x *StatisticsForEventStoreRequest) Reset()

func (*StatisticsForEventStoreRequest) String

type StatisticsForNamespaceRequest

type StatisticsForNamespaceRequest struct {
	EventStore string `protobuf:"bytes,1,opt,name=EventStore,proto3" json:"EventStore,omitempty"`
	Namespace  string `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*StatisticsForNamespaceRequest) Descriptor deprecated

func (*StatisticsForNamespaceRequest) Descriptor() ([]byte, []int)

Deprecated: Use StatisticsForNamespaceRequest.ProtoReflect.Descriptor instead.

func (*StatisticsForNamespaceRequest) GetEventStore

func (x *StatisticsForNamespaceRequest) GetEventStore() string

func (*StatisticsForNamespaceRequest) GetNamespace

func (x *StatisticsForNamespaceRequest) GetNamespace() string

func (*StatisticsForNamespaceRequest) ProtoMessage

func (*StatisticsForNamespaceRequest) ProtoMessage()

func (*StatisticsForNamespaceRequest) ProtoReflect

func (*StatisticsForNamespaceRequest) Reset

func (x *StatisticsForNamespaceRequest) Reset()

func (*StatisticsForNamespaceRequest) String

type StatisticsServer

type StatisticsServer interface {
	StatisticsForEventStore(context.Context, *StatisticsForEventStoreRequest) (*QueryResult_EventStatisticsResponse, error)
	StatisticsForNamespace(context.Context, *StatisticsForNamespaceRequest) (*QueryResult_EventStatisticsResponse, error)
	// contains filtered or unexported methods
}

StatisticsServer is the server API for Statistics service. All implementations must embed UnimplementedStatisticsServer for forward compatibility.

type UnimplementedStatisticsServer

type UnimplementedStatisticsServer struct{}

UnimplementedStatisticsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeStatisticsServer

type UnsafeStatisticsServer interface {
	// contains filtered or unexported methods
}

UnsafeStatisticsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatisticsServer will result in compilation errors.

type ValidationResult

type ValidationResult struct {
	Severity ValidationResultSeverity `` // default value could not be applied: Error
	/* 138-byte string literal not displayed */
	Message string   `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	Members []string `protobuf:"bytes,3,rep,name=Members,proto3" json:"Members,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidationResult) Descriptor deprecated

func (*ValidationResult) Descriptor() ([]byte, []int)

Deprecated: Use ValidationResult.ProtoReflect.Descriptor instead.

func (*ValidationResult) GetMembers

func (x *ValidationResult) GetMembers() []string

func (*ValidationResult) GetMessage

func (x *ValidationResult) GetMessage() string

func (*ValidationResult) GetSeverity

func (x *ValidationResult) GetSeverity() ValidationResultSeverity

func (*ValidationResult) ProtoMessage

func (*ValidationResult) ProtoMessage()

func (*ValidationResult) ProtoReflect

func (x *ValidationResult) ProtoReflect() protoreflect.Message

func (*ValidationResult) Reset

func (x *ValidationResult) Reset()

func (*ValidationResult) String

func (x *ValidationResult) String() string

type ValidationResultSeverity

type ValidationResultSeverity int32
const (
	ValidationResultSeverity_Unknown     ValidationResultSeverity = 0
	ValidationResultSeverity_Information ValidationResultSeverity = 1
	ValidationResultSeverity_Warning     ValidationResultSeverity = 2
	ValidationResultSeverity_Error       ValidationResultSeverity = 3
)

func (ValidationResultSeverity) Descriptor

func (ValidationResultSeverity) Enum

func (ValidationResultSeverity) EnumDescriptor deprecated

func (ValidationResultSeverity) EnumDescriptor() ([]byte, []int)

Deprecated: Use ValidationResultSeverity.Descriptor instead.

func (ValidationResultSeverity) Number

func (ValidationResultSeverity) String

func (x ValidationResultSeverity) String() string

func (ValidationResultSeverity) Type

Jump to

Keyboard shortcuts

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