Documentation ¶
Index ¶
- Variables
- func RegisterUsageServiceServer(s grpc.ServiceRegistrar, srv UsageServiceServer)
- type GetStreamEventUsageRequest
- func (*GetStreamEventUsageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStreamEventUsageRequest) GetEndTime() *timestamppb.Timestamp
- func (x *GetStreamEventUsageRequest) GetInterval() *durationpb.Duration
- func (x *GetStreamEventUsageRequest) GetRef() *v1.StreamRef
- func (x *GetStreamEventUsageRequest) GetStartTime() *timestamppb.Timestamp
- func (*GetStreamEventUsageRequest) ProtoMessage()
- func (x *GetStreamEventUsageRequest) ProtoReflect() protoreflect.Message
- func (x *GetStreamEventUsageRequest) Reset()
- func (x *GetStreamEventUsageRequest) String() string
- type GetStreamEventUsageResponse
- func (*GetStreamEventUsageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStreamEventUsageResponse) GetRef() *v1.StreamRef
- func (x *GetStreamEventUsageResponse) GetWindows() []*v1.WindowedEventCount
- func (*GetStreamEventUsageResponse) ProtoMessage()
- func (x *GetStreamEventUsageResponse) ProtoReflect() protoreflect.Message
- func (x *GetStreamEventUsageResponse) Reset()
- func (x *GetStreamEventUsageResponse) String() string
- type UnimplementedUsageServiceServer
- type UnsafeUsageServiceServer
- type UsageServiceClient
- type UsageServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_streammachine_api_usage_v1_usage_v1_proto protoreflect.FileDescriptor
var UsageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "streammachine.api.usage.v1.UsageService", HandlerType: (*UsageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStreamEventUsage", Handler: _UsageService_GetStreamEventUsage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "streammachine/api/usage/v1/usage_v1.proto", }
UsageService_ServiceDesc is the grpc.ServiceDesc for UsageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUsageServiceServer ¶
func RegisterUsageServiceServer(s grpc.ServiceRegistrar, srv UsageServiceServer)
Types ¶
type GetStreamEventUsageRequest ¶
type GetStreamEventUsageRequest struct { Ref *v1.StreamRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Interval *durationpb.Duration `protobuf:"bytes,4,opt,name=interval,proto3" json:"interval,omitempty"` // contains filtered or unexported fields }
func (*GetStreamEventUsageRequest) Descriptor
deprecated
func (*GetStreamEventUsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStreamEventUsageRequest.ProtoReflect.Descriptor instead.
func (*GetStreamEventUsageRequest) GetEndTime ¶
func (x *GetStreamEventUsageRequest) GetEndTime() *timestamppb.Timestamp
func (*GetStreamEventUsageRequest) GetInterval ¶
func (x *GetStreamEventUsageRequest) GetInterval() *durationpb.Duration
func (*GetStreamEventUsageRequest) GetRef ¶
func (x *GetStreamEventUsageRequest) GetRef() *v1.StreamRef
func (*GetStreamEventUsageRequest) GetStartTime ¶
func (x *GetStreamEventUsageRequest) GetStartTime() *timestamppb.Timestamp
func (*GetStreamEventUsageRequest) ProtoMessage ¶
func (*GetStreamEventUsageRequest) ProtoMessage()
func (*GetStreamEventUsageRequest) ProtoReflect ¶
func (x *GetStreamEventUsageRequest) ProtoReflect() protoreflect.Message
func (*GetStreamEventUsageRequest) Reset ¶
func (x *GetStreamEventUsageRequest) Reset()
func (*GetStreamEventUsageRequest) String ¶
func (x *GetStreamEventUsageRequest) String() string
type GetStreamEventUsageResponse ¶
type GetStreamEventUsageResponse struct { Ref *v1.StreamRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` Windows []*v1.WindowedEventCount `protobuf:"bytes,2,rep,name=windows,proto3" json:"windows,omitempty"` // contains filtered or unexported fields }
func (*GetStreamEventUsageResponse) Descriptor
deprecated
func (*GetStreamEventUsageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStreamEventUsageResponse.ProtoReflect.Descriptor instead.
func (*GetStreamEventUsageResponse) GetRef ¶
func (x *GetStreamEventUsageResponse) GetRef() *v1.StreamRef
func (*GetStreamEventUsageResponse) GetWindows ¶
func (x *GetStreamEventUsageResponse) GetWindows() []*v1.WindowedEventCount
func (*GetStreamEventUsageResponse) ProtoMessage ¶
func (*GetStreamEventUsageResponse) ProtoMessage()
func (*GetStreamEventUsageResponse) ProtoReflect ¶
func (x *GetStreamEventUsageResponse) ProtoReflect() protoreflect.Message
func (*GetStreamEventUsageResponse) Reset ¶
func (x *GetStreamEventUsageResponse) Reset()
func (*GetStreamEventUsageResponse) String ¶
func (x *GetStreamEventUsageResponse) String() string
type UnimplementedUsageServiceServer ¶
type UnimplementedUsageServiceServer struct { }
UnimplementedUsageServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUsageServiceServer) GetStreamEventUsage ¶
func (UnimplementedUsageServiceServer) GetStreamEventUsage(context.Context, *GetStreamEventUsageRequest) (*GetStreamEventUsageResponse, error)
type UnsafeUsageServiceServer ¶
type UnsafeUsageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUsageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsageServiceServer will result in compilation errors.
type UsageServiceClient ¶
type UsageServiceClient interface {
GetStreamEventUsage(ctx context.Context, in *GetStreamEventUsageRequest, opts ...grpc.CallOption) (*GetStreamEventUsageResponse, error)
}
UsageServiceClient is the client API for UsageService 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 NewUsageServiceClient ¶
func NewUsageServiceClient(cc grpc.ClientConnInterface) UsageServiceClient
type UsageServiceServer ¶
type UsageServiceServer interface { GetStreamEventUsage(context.Context, *GetStreamEventUsageRequest) (*GetStreamEventUsageResponse, error) // contains filtered or unexported methods }
UsageServiceServer is the server API for UsageService service. All implementations must embed UnimplementedUsageServiceServer for forward compatibility