usage

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_streammachine_api_usage_v1_usage_v1_proto protoreflect.FileDescriptor
View Source
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 (*GetStreamEventUsageRequest) GetInterval

func (*GetStreamEventUsageRequest) GetRef

func (*GetStreamEventUsageRequest) GetStartTime

func (*GetStreamEventUsageRequest) ProtoMessage

func (*GetStreamEventUsageRequest) ProtoMessage()

func (*GetStreamEventUsageRequest) ProtoReflect

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 (*GetStreamEventUsageResponse) GetWindows

func (*GetStreamEventUsageResponse) ProtoMessage

func (*GetStreamEventUsageResponse) ProtoMessage()

func (*GetStreamEventUsageResponse) ProtoReflect

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.

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.

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

Jump to

Keyboard shortcuts

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