v1

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_usagereport_v1_usagereport_proto protoreflect.FileDescriptor
View Source
var UsageReportService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usagereport.v1.UsageReportService",
	HandlerType: (*UsageReportServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Report",
			Handler:    _UsageReportService_Report_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "usagereport/v1/usagereport.proto",
}

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

Functions

func RegisterUsageReportServiceServer

func RegisterUsageReportServiceServer(s grpc.ServiceRegistrar, srv UsageReportServiceServer)

Types

type Plugin

type Plugin struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version  string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Checksum string `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

func (*Plugin) Descriptor deprecated

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

Deprecated: Use Plugin.ProtoReflect.Descriptor instead.

func (*Plugin) GetChecksum

func (x *Plugin) GetChecksum() string

func (*Plugin) GetName

func (x *Plugin) GetName() string

func (*Plugin) GetVersion

func (x *Plugin) GetVersion() string

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) ProtoReflect

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

func (*Plugin) Reset

func (x *Plugin) Reset()

func (*Plugin) String

func (x *Plugin) String() string

func (*Plugin) Validate

func (m *Plugin) Validate() error

Validate checks the field values on Plugin with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Plugin) ValidateAll

func (m *Plugin) ValidateAll() error

ValidateAll checks the field values on Plugin with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PluginMultiError, or nil if none found.

type PluginMultiError

type PluginMultiError []error

PluginMultiError is an error wrapping multiple validation errors returned by Plugin.ValidateAll() if the designated constraints aren't met.

func (PluginMultiError) AllErrors

func (m PluginMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PluginMultiError) Error

func (m PluginMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PluginValidationError

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

PluginValidationError is the validation error returned by Plugin.Validate if the designated constraints aren't met.

func (PluginValidationError) Cause

func (e PluginValidationError) Cause() error

Cause function returns cause value.

func (PluginValidationError) Error

func (e PluginValidationError) Error() string

Error satisfies the builtin error interface

func (PluginValidationError) ErrorName

func (e PluginValidationError) ErrorName() string

ErrorName returns error name.

func (PluginValidationError) Field

func (e PluginValidationError) Field() string

Field function returns field value.

func (PluginValidationError) Key

func (e PluginValidationError) Key() bool

Key function returns key value.

func (PluginValidationError) Reason

func (e PluginValidationError) Reason() string

Reason function returns reason value.

type UnimplementedUsageReportServiceServer

type UnimplementedUsageReportServiceServer struct {
}

UnimplementedUsageReportServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUsageReportServiceServer) Report

type UnsafeUsageReportServiceServer

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

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

type UsageReportRequest

type UsageReportRequest struct {
	Version        string    `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	RuntimeVersion string    `protobuf:"bytes,2,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
	Goos           string    `protobuf:"bytes,3,opt,name=goos,proto3" json:"goos,omitempty"`
	Goarch         string    `protobuf:"bytes,4,opt,name=goarch,proto3" json:"goarch,omitempty"`
	Service        string    `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	DevMode        bool      `protobuf:"varint,6,opt,name=dev_mode,json=devMode,proto3" json:"dev_mode,omitempty"`
	Plugins        []*Plugin `protobuf:"bytes,7,rep,name=plugins,proto3" json:"plugins,omitempty"`
	// contains filtered or unexported fields
}

func (*UsageReportRequest) Descriptor deprecated

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

Deprecated: Use UsageReportRequest.ProtoReflect.Descriptor instead.

func (*UsageReportRequest) GetDevMode

func (x *UsageReportRequest) GetDevMode() bool

func (*UsageReportRequest) GetGoarch

func (x *UsageReportRequest) GetGoarch() string

func (*UsageReportRequest) GetGoos

func (x *UsageReportRequest) GetGoos() string

func (*UsageReportRequest) GetPlugins

func (x *UsageReportRequest) GetPlugins() []*Plugin

func (*UsageReportRequest) GetRuntimeVersion

func (x *UsageReportRequest) GetRuntimeVersion() string

func (*UsageReportRequest) GetService

func (x *UsageReportRequest) GetService() string

func (*UsageReportRequest) GetVersion

func (x *UsageReportRequest) GetVersion() string

func (*UsageReportRequest) ProtoMessage

func (*UsageReportRequest) ProtoMessage()

func (*UsageReportRequest) ProtoReflect

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

func (*UsageReportRequest) Reset

func (x *UsageReportRequest) Reset()

func (*UsageReportRequest) String

func (x *UsageReportRequest) String() string

func (*UsageReportRequest) Validate

func (m *UsageReportRequest) Validate() error

Validate checks the field values on UsageReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UsageReportRequest) ValidateAll

func (m *UsageReportRequest) ValidateAll() error

ValidateAll checks the field values on UsageReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UsageReportRequestMultiError, or nil if none found.

type UsageReportRequestMultiError

type UsageReportRequestMultiError []error

UsageReportRequestMultiError is an error wrapping multiple validation errors returned by UsageReportRequest.ValidateAll() if the designated constraints aren't met.

func (UsageReportRequestMultiError) AllErrors

func (m UsageReportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UsageReportRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UsageReportRequestValidationError

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

UsageReportRequestValidationError is the validation error returned by UsageReportRequest.Validate if the designated constraints aren't met.

func (UsageReportRequestValidationError) Cause

Cause function returns cause value.

func (UsageReportRequestValidationError) Error

Error satisfies the builtin error interface

func (UsageReportRequestValidationError) ErrorName

ErrorName returns error name.

func (UsageReportRequestValidationError) Field

Field function returns field value.

func (UsageReportRequestValidationError) Key

Key function returns key value.

func (UsageReportRequestValidationError) Reason

Reason function returns reason value.

type UsageReportServiceClient

type UsageReportServiceClient interface {
	Report(ctx context.Context, in *UsageReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UsageReportServiceClient is the client API for UsageReportService 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 UsageReportServiceServer

type UsageReportServiceServer interface {
	Report(context.Context, *UsageReportRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UsageReportServiceServer is the server API for UsageReportService service. All implementations must embed UnimplementedUsageReportServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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