Documentation ¶
Index ¶
- Variables
- func RegisterAnalyticsCollectorServer(s grpc.ServiceRegistrar, srv AnalyticsCollectorServer)
- type Analytics
- type AnalyticsCollectorClient
- type AnalyticsCollectorServer
- type InstanceStartedEvent
- func (*InstanceStartedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceStartedEvent) GetBuildId() string
- func (x *InstanceStartedEvent) GetEnvironmentId() string
- func (x *InstanceStartedEvent) GetInstanceId() string
- func (x *InstanceStartedEvent) GetTeamId() string
- func (x *InstanceStartedEvent) GetTimestamp() *timestamppb.Timestamp
- func (*InstanceStartedEvent) ProtoMessage()
- func (x *InstanceStartedEvent) ProtoReflect() protoreflect.Message
- func (x *InstanceStartedEvent) Reset()
- func (x *InstanceStartedEvent) String() string
- type InstanceStoppedEvent
- func (*InstanceStoppedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceStoppedEvent) GetDuration() float32
- func (x *InstanceStoppedEvent) GetEnvironmentId() string
- func (x *InstanceStoppedEvent) GetInstanceId() string
- func (x *InstanceStoppedEvent) GetTeamId() string
- func (x *InstanceStoppedEvent) GetTimestamp() *timestamppb.Timestamp
- func (*InstanceStoppedEvent) ProtoMessage()
- func (x *InstanceStoppedEvent) ProtoReflect() protoreflect.Message
- func (x *InstanceStoppedEvent) Reset()
- func (x *InstanceStoppedEvent) String() string
- type RunningInstancesEvent
- func (*RunningInstancesEvent) Descriptor() ([]byte, []int)deprecated
- func (x *RunningInstancesEvent) GetInstanceIds() []string
- func (x *RunningInstancesEvent) GetTimestamp() *timestamppb.Timestamp
- func (*RunningInstancesEvent) ProtoMessage()
- func (x *RunningInstancesEvent) ProtoReflect() protoreflect.Message
- func (x *RunningInstancesEvent) Reset()
- func (x *RunningInstancesEvent) String() string
- type UnimplementedAnalyticsCollectorServer
- func (UnimplementedAnalyticsCollectorServer) InstanceStarted(context.Context, *InstanceStartedEvent) (*emptypb.Empty, error)
- func (UnimplementedAnalyticsCollectorServer) InstanceStopped(context.Context, *InstanceStoppedEvent) (*emptypb.Empty, error)
- func (UnimplementedAnalyticsCollectorServer) RunningInstances(context.Context, *RunningInstancesEvent) (*emptypb.Empty, error)
- type UnsafeAnalyticsCollectorServer
Constants ¶
This section is empty.
Variables ¶
var AnalyticsCollector_ServiceDesc = grpc.ServiceDesc{ ServiceName: "AnalyticsCollector", HandlerType: (*AnalyticsCollectorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InstanceStarted", Handler: _AnalyticsCollector_InstanceStarted_Handler, }, { MethodName: "RunningInstances", Handler: _AnalyticsCollector_RunningInstances_Handler, }, { MethodName: "InstanceStopped", Handler: _AnalyticsCollector_InstanceStopped_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "collector.proto", }
AnalyticsCollector_ServiceDesc is the grpc.ServiceDesc for AnalyticsCollector service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_collector_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAnalyticsCollectorServer ¶
func RegisterAnalyticsCollectorServer(s grpc.ServiceRegistrar, srv AnalyticsCollectorServer)
Types ¶
type Analytics ¶
type Analytics struct { Client AnalyticsCollectorClient // contains filtered or unexported fields }
func NewAnalytics ¶
type AnalyticsCollectorClient ¶
type AnalyticsCollectorClient interface { InstanceStarted(ctx context.Context, in *InstanceStartedEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) RunningInstances(ctx context.Context, in *RunningInstancesEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) InstanceStopped(ctx context.Context, in *InstanceStoppedEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AnalyticsCollectorClient is the client API for AnalyticsCollector 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 NewAnalyticsCollectorClient ¶
func NewAnalyticsCollectorClient(cc grpc.ClientConnInterface) AnalyticsCollectorClient
type AnalyticsCollectorServer ¶
type AnalyticsCollectorServer interface { InstanceStarted(context.Context, *InstanceStartedEvent) (*emptypb.Empty, error) RunningInstances(context.Context, *RunningInstancesEvent) (*emptypb.Empty, error) InstanceStopped(context.Context, *InstanceStoppedEvent) (*emptypb.Empty, error) // contains filtered or unexported methods }
AnalyticsCollectorServer is the server API for AnalyticsCollector service. All implementations must embed UnimplementedAnalyticsCollectorServer for forward compatibility
type InstanceStartedEvent ¶
type InstanceStartedEvent struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` InstanceId string `protobuf:"bytes,4,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` BuildId string `protobuf:"bytes,5,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` // contains filtered or unexported fields }
func (*InstanceStartedEvent) Descriptor
deprecated
func (*InstanceStartedEvent) Descriptor() ([]byte, []int)
Deprecated: Use InstanceStartedEvent.ProtoReflect.Descriptor instead.
func (*InstanceStartedEvent) GetBuildId ¶
func (x *InstanceStartedEvent) GetBuildId() string
func (*InstanceStartedEvent) GetEnvironmentId ¶
func (x *InstanceStartedEvent) GetEnvironmentId() string
func (*InstanceStartedEvent) GetInstanceId ¶
func (x *InstanceStartedEvent) GetInstanceId() string
func (*InstanceStartedEvent) GetTeamId ¶
func (x *InstanceStartedEvent) GetTeamId() string
func (*InstanceStartedEvent) GetTimestamp ¶
func (x *InstanceStartedEvent) GetTimestamp() *timestamppb.Timestamp
func (*InstanceStartedEvent) ProtoMessage ¶
func (*InstanceStartedEvent) ProtoMessage()
func (*InstanceStartedEvent) ProtoReflect ¶
func (x *InstanceStartedEvent) ProtoReflect() protoreflect.Message
func (*InstanceStartedEvent) Reset ¶
func (x *InstanceStartedEvent) Reset()
func (*InstanceStartedEvent) String ¶
func (x *InstanceStartedEvent) String() string
type InstanceStoppedEvent ¶
type InstanceStoppedEvent struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` InstanceId string `protobuf:"bytes,4,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` Duration float32 `protobuf:"fixed32,5,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*InstanceStoppedEvent) Descriptor
deprecated
func (*InstanceStoppedEvent) Descriptor() ([]byte, []int)
Deprecated: Use InstanceStoppedEvent.ProtoReflect.Descriptor instead.
func (*InstanceStoppedEvent) GetDuration ¶
func (x *InstanceStoppedEvent) GetDuration() float32
func (*InstanceStoppedEvent) GetEnvironmentId ¶
func (x *InstanceStoppedEvent) GetEnvironmentId() string
func (*InstanceStoppedEvent) GetInstanceId ¶
func (x *InstanceStoppedEvent) GetInstanceId() string
func (*InstanceStoppedEvent) GetTeamId ¶
func (x *InstanceStoppedEvent) GetTeamId() string
func (*InstanceStoppedEvent) GetTimestamp ¶
func (x *InstanceStoppedEvent) GetTimestamp() *timestamppb.Timestamp
func (*InstanceStoppedEvent) ProtoMessage ¶
func (*InstanceStoppedEvent) ProtoMessage()
func (*InstanceStoppedEvent) ProtoReflect ¶
func (x *InstanceStoppedEvent) ProtoReflect() protoreflect.Message
func (*InstanceStoppedEvent) Reset ¶
func (x *InstanceStoppedEvent) Reset()
func (*InstanceStoppedEvent) String ¶
func (x *InstanceStoppedEvent) String() string
type RunningInstancesEvent ¶
type RunningInstancesEvent struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` InstanceIds []string `protobuf:"bytes,2,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"` // contains filtered or unexported fields }
func (*RunningInstancesEvent) Descriptor
deprecated
func (*RunningInstancesEvent) Descriptor() ([]byte, []int)
Deprecated: Use RunningInstancesEvent.ProtoReflect.Descriptor instead.
func (*RunningInstancesEvent) GetInstanceIds ¶
func (x *RunningInstancesEvent) GetInstanceIds() []string
func (*RunningInstancesEvent) GetTimestamp ¶
func (x *RunningInstancesEvent) GetTimestamp() *timestamppb.Timestamp
func (*RunningInstancesEvent) ProtoMessage ¶
func (*RunningInstancesEvent) ProtoMessage()
func (*RunningInstancesEvent) ProtoReflect ¶
func (x *RunningInstancesEvent) ProtoReflect() protoreflect.Message
func (*RunningInstancesEvent) Reset ¶
func (x *RunningInstancesEvent) Reset()
func (*RunningInstancesEvent) String ¶
func (x *RunningInstancesEvent) String() string
type UnimplementedAnalyticsCollectorServer ¶
type UnimplementedAnalyticsCollectorServer struct { }
UnimplementedAnalyticsCollectorServer must be embedded to have forward compatible implementations.
func (UnimplementedAnalyticsCollectorServer) InstanceStarted ¶
func (UnimplementedAnalyticsCollectorServer) InstanceStarted(context.Context, *InstanceStartedEvent) (*emptypb.Empty, error)
func (UnimplementedAnalyticsCollectorServer) InstanceStopped ¶
func (UnimplementedAnalyticsCollectorServer) InstanceStopped(context.Context, *InstanceStoppedEvent) (*emptypb.Empty, error)
func (UnimplementedAnalyticsCollectorServer) RunningInstances ¶
func (UnimplementedAnalyticsCollectorServer) RunningInstances(context.Context, *RunningInstancesEvent) (*emptypb.Empty, error)
type UnsafeAnalyticsCollectorServer ¶
type UnsafeAnalyticsCollectorServer interface {
// contains filtered or unexported methods
}
UnsafeAnalyticsCollectorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnalyticsCollectorServer will result in compilation errors.