Documentation
¶
Index ¶
- func RegisterReportingServiceServer(s *grpc.Server, srv ReportingServiceServer)
- type InstanceMetadata
- func (*InstanceMetadata) Descriptor() ([]byte, []int)
- func (m *InstanceMetadata) GetProduct() *Product
- func (m *InstanceMetadata) GetSignature() string
- func (*InstanceMetadata) ProtoMessage()
- func (m *InstanceMetadata) Reset()
- func (m *InstanceMetadata) String() string
- func (m *InstanceMetadata) XXX_DiscardUnknown()
- func (m *InstanceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstanceMetadata) XXX_Merge(src proto.Message)
- func (m *InstanceMetadata) XXX_Size() int
- func (m *InstanceMetadata) XXX_Unmarshal(b []byte) error
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) GetArch() string
- func (m *Product) GetOs() string
- func (m *Product) GetProduct() string
- func (m *Product) GetVersion() string
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) String() string
- func (m *Product) XXX_DiscardUnknown()
- func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Product) XXX_Merge(src proto.Message)
- func (m *Product) XXX_Size() int
- func (m *Product) XXX_Unmarshal(b []byte) error
- type ReportingServiceClient
- type ReportingServiceServer
- type UnimplementedReportingServiceServer
- type UsageRequest
- func (*UsageRequest) Descriptor() ([]byte, []int)
- func (m *UsageRequest) GetInstanceMetadata() *InstanceMetadata
- func (m *UsageRequest) GetPayload() map[string]string
- func (*UsageRequest) ProtoMessage()
- func (m *UsageRequest) Reset()
- func (m *UsageRequest) String() string
- func (m *UsageRequest) XXX_DiscardUnknown()
- func (m *UsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UsageRequest) XXX_Merge(src proto.Message)
- func (m *UsageRequest) XXX_Size() int
- func (m *UsageRequest) XXX_Unmarshal(b []byte) error
- type UsageResponse
- func (*UsageResponse) Descriptor() ([]byte, []int)
- func (*UsageResponse) ProtoMessage()
- func (m *UsageResponse) Reset()
- func (m *UsageResponse) String() string
- func (m *UsageResponse) XXX_DiscardUnknown()
- func (m *UsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UsageResponse) XXX_Merge(src proto.Message)
- func (m *UsageResponse) XXX_Size() int
- func (m *UsageResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterReportingServiceServer ¶
func RegisterReportingServiceServer(s *grpc.Server, srv ReportingServiceServer)
Types ¶
type InstanceMetadata ¶
type InstanceMetadata struct { Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` // should be unique per reporting source, and unchanging over the life of the reporting source // this repo offers a SignatureManager type that can maintain a unique signature Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InstanceMetadata) Descriptor ¶
func (*InstanceMetadata) Descriptor() ([]byte, []int)
func (*InstanceMetadata) GetProduct ¶
func (m *InstanceMetadata) GetProduct() *Product
func (*InstanceMetadata) GetSignature ¶ added in v0.1.0
func (m *InstanceMetadata) GetSignature() string
func (*InstanceMetadata) ProtoMessage ¶
func (*InstanceMetadata) ProtoMessage()
func (*InstanceMetadata) Reset ¶
func (m *InstanceMetadata) Reset()
func (*InstanceMetadata) String ¶
func (m *InstanceMetadata) String() string
func (*InstanceMetadata) XXX_DiscardUnknown ¶
func (m *InstanceMetadata) XXX_DiscardUnknown()
func (*InstanceMetadata) XXX_Marshal ¶
func (m *InstanceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstanceMetadata) XXX_Merge ¶
func (m *InstanceMetadata) XXX_Merge(src proto.Message)
func (*InstanceMetadata) XXX_Size ¶
func (m *InstanceMetadata) XXX_Size() int
func (*InstanceMetadata) XXX_Unmarshal ¶
func (m *InstanceMetadata) XXX_Unmarshal(b []byte) error
type Product ¶ added in v0.1.0
type Product struct { Product string `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Arch string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"` Os string `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
information that every reporting source should include
func (*Product) Descriptor ¶ added in v0.1.0
func (*Product) GetProduct ¶ added in v0.1.0
func (*Product) GetVersion ¶ added in v0.1.0
func (*Product) ProtoMessage ¶ added in v0.1.0
func (*Product) ProtoMessage()
func (*Product) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *Product) XXX_DiscardUnknown()
func (*Product) XXX_Marshal ¶ added in v0.1.0
func (*Product) XXX_Unmarshal ¶ added in v0.1.0
type ReportingServiceClient ¶
type ReportingServiceClient interface {
ReportUsage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error)
}
ReportingServiceClient is the client API for ReportingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReportingServiceClient ¶
func NewReportingServiceClient(cc *grpc.ClientConn) ReportingServiceClient
type ReportingServiceServer ¶
type ReportingServiceServer interface {
ReportUsage(context.Context, *UsageRequest) (*UsageResponse, error)
}
ReportingServiceServer is the server API for ReportingService service.
type UnimplementedReportingServiceServer ¶
type UnimplementedReportingServiceServer struct { }
UnimplementedReportingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedReportingServiceServer) ReportUsage ¶
func (*UnimplementedReportingServiceServer) ReportUsage(ctx context.Context, req *UsageRequest) (*UsageResponse, error)
type UsageRequest ¶
type UsageRequest struct { InstanceMetadata *InstanceMetadata `protobuf:"bytes,1,opt,name=instance_metadata,json=instanceMetadata,proto3" json:"instance_metadata,omitempty"` // arbitrary key/value pairs - each reporting source can choose what to include here Payload map[string]string `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UsageRequest) Descriptor ¶
func (*UsageRequest) Descriptor() ([]byte, []int)
func (*UsageRequest) GetInstanceMetadata ¶
func (m *UsageRequest) GetInstanceMetadata() *InstanceMetadata
func (*UsageRequest) GetPayload ¶
func (m *UsageRequest) GetPayload() map[string]string
func (*UsageRequest) ProtoMessage ¶
func (*UsageRequest) ProtoMessage()
func (*UsageRequest) Reset ¶
func (m *UsageRequest) Reset()
func (*UsageRequest) String ¶
func (m *UsageRequest) String() string
func (*UsageRequest) XXX_DiscardUnknown ¶
func (m *UsageRequest) XXX_DiscardUnknown()
func (*UsageRequest) XXX_Marshal ¶
func (m *UsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UsageRequest) XXX_Merge ¶
func (m *UsageRequest) XXX_Merge(src proto.Message)
func (*UsageRequest) XXX_Size ¶
func (m *UsageRequest) XXX_Size() int
func (*UsageRequest) XXX_Unmarshal ¶
func (m *UsageRequest) XXX_Unmarshal(b []byte) error
type UsageResponse ¶
type UsageResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UsageResponse) Descriptor ¶
func (*UsageResponse) Descriptor() ([]byte, []int)
func (*UsageResponse) ProtoMessage ¶
func (*UsageResponse) ProtoMessage()
func (*UsageResponse) Reset ¶
func (m *UsageResponse) Reset()
func (*UsageResponse) String ¶
func (m *UsageResponse) String() string
func (*UsageResponse) XXX_DiscardUnknown ¶
func (m *UsageResponse) XXX_DiscardUnknown()
func (*UsageResponse) XXX_Marshal ¶
func (m *UsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UsageResponse) XXX_Merge ¶
func (m *UsageResponse) XXX_Merge(src proto.Message)
func (*UsageResponse) XXX_Size ¶
func (m *UsageResponse) XXX_Size() int
func (*UsageResponse) XXX_Unmarshal ¶
func (m *UsageResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.