Documentation
¶
Index ¶
Constants ¶
const (
StatsService_SubmitStats_FullMethodName = "/santa.stats.v1.StatsService/SubmitStats"
)
Variables ¶
var StatsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "santa.stats.v1.StatsService", HandlerType: (*StatsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitStats", Handler: _StatsService_SubmitStats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "stats/v1.proto", }
StatsService_ServiceDesc is the grpc.ServiceDesc for StatsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStatsServiceServer ¶
func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer)
Types ¶
type StatsServiceClient ¶
type StatsServiceClient interface {
SubmitStats(ctx context.Context, in *stats.SubmitStatsRequest, opts ...grpc.CallOption) (*stats.SubmitStatsResponse, error)
}
StatsServiceClient is the client API for StatsService 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.
StatsService is a gRPC service hosted at stats.northpole.security to which the Santa agent will send anonymous usage statistics, IF OPTED IN. These statistics help development by providing data about what versions are being used and on what macOS versions, particularly when it comes to using new library/SDK features and deprecating older features.
func NewStatsServiceClient ¶
func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient
type StatsServiceServer ¶
type StatsServiceServer interface {
SubmitStats(context.Context, *stats.SubmitStatsRequest) (*stats.SubmitStatsResponse, error)
}
StatsServiceServer is the server API for StatsService service. All implementations should embed UnimplementedStatsServiceServer for forward compatibility
StatsService is a gRPC service hosted at stats.northpole.security to which the Santa agent will send anonymous usage statistics, IF OPTED IN. These statistics help development by providing data about what versions are being used and on what macOS versions, particularly when it comes to using new library/SDK features and deprecating older features.
type UnimplementedStatsServiceServer ¶
type UnimplementedStatsServiceServer struct { }
UnimplementedStatsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedStatsServiceServer) SubmitStats ¶
func (UnimplementedStatsServiceServer) SubmitStats(context.Context, *stats.SubmitStatsRequest) (*stats.SubmitStatsResponse, error)
type UnsafeStatsServiceServer ¶
type UnsafeStatsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStatsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatsServiceServer will result in compilation errors.