Documentation ¶
Index ¶
- Variables
- func RegisterUsageReportServiceServer(s grpc.ServiceRegistrar, srv UsageReportServiceServer)
- type Plugin
- func (*Plugin) Descriptor() ([]byte, []int)deprecated
- func (x *Plugin) GetChecksum() string
- func (x *Plugin) GetName() string
- func (x *Plugin) GetVersion() string
- func (*Plugin) ProtoMessage()
- func (x *Plugin) ProtoReflect() protoreflect.Message
- func (x *Plugin) Reset()
- func (x *Plugin) String() string
- func (m *Plugin) Validate() error
- func (m *Plugin) ValidateAll() error
- type PluginMultiError
- type PluginValidationError
- type UnimplementedUsageReportServiceServer
- type UnsafeUsageReportServiceServer
- type UsageReportRequest
- func (*UsageReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UsageReportRequest) GetDevMode() bool
- func (x *UsageReportRequest) GetGoarch() string
- func (x *UsageReportRequest) GetGoos() string
- func (x *UsageReportRequest) GetPlugins() []*Plugin
- func (x *UsageReportRequest) GetRuntimeVersion() string
- func (x *UsageReportRequest) GetService() string
- func (x *UsageReportRequest) GetVersion() string
- func (*UsageReportRequest) ProtoMessage()
- func (x *UsageReportRequest) ProtoReflect() protoreflect.Message
- func (x *UsageReportRequest) Reset()
- func (x *UsageReportRequest) String() string
- func (m *UsageReportRequest) Validate() error
- func (m *UsageReportRequest) ValidateAll() error
- type UsageReportRequestMultiError
- type UsageReportRequestValidationError
- func (e UsageReportRequestValidationError) Cause() error
- func (e UsageReportRequestValidationError) Error() string
- func (e UsageReportRequestValidationError) ErrorName() string
- func (e UsageReportRequestValidationError) Field() string
- func (e UsageReportRequestValidationError) Key() bool
- func (e UsageReportRequestValidationError) Reason() string
- type UsageReportServiceClient
- type UsageReportServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_usagereport_v1_usagereport_proto protoreflect.FileDescriptor
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) GetChecksum ¶
func (*Plugin) GetVersion ¶
func (*Plugin) ProtoMessage ¶
func (*Plugin) ProtoMessage()
func (*Plugin) ProtoReflect ¶
func (x *Plugin) ProtoReflect() protoreflect.Message
func (*Plugin) Validate ¶
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 ¶
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 ¶
func (UnimplementedUsageReportServiceServer) Report(context.Context, *UsageReportRequest) (*emptypb.Empty, error)
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 ¶
func (m UsageReportRequestMultiError) Error() string
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 ¶
func (e UsageReportRequestValidationError) Cause() error
Cause function returns cause value.
func (UsageReportRequestValidationError) Error ¶
func (e UsageReportRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UsageReportRequestValidationError) ErrorName ¶
func (e UsageReportRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UsageReportRequestValidationError) Field ¶
func (e UsageReportRequestValidationError) Field() string
Field function returns field value.
func (UsageReportRequestValidationError) Key ¶
func (e UsageReportRequestValidationError) Key() bool
Key function returns key value.
func (UsageReportRequestValidationError) Reason ¶
func (e UsageReportRequestValidationError) Reason() string
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.
func NewUsageReportServiceClient ¶
func NewUsageReportServiceClient(cc grpc.ClientConnInterface) UsageReportServiceClient
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