v1

package
v0.3.0-alpha6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_proto_report_v1_report_proto protoreflect.FileDescriptor
View Source
var ReportService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.report.v1.ReportService",
	HandlerType: (*ReportServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Get",
			Handler:       _ReportService_Get_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "pkg/proto/report/v1/report.proto",
}

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

Functions

func RegisterReportServiceServer

func RegisterReportServiceServer(s grpc.ServiceRegistrar, srv ReportServiceServer)

Types

type GetRequest

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

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {
	Report *Report `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetReport

func (x *GetResponse) GetReport() *Report

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type Report

type Report struct {
	Cache     string                 `protobuf:"bytes,2,opt,name=cache,proto3" json:"cache,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Report) Descriptor deprecated

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetCache

func (x *Report) GetCache() string

func (*Report) GetUpdatedAt

func (x *Report) GetUpdatedAt() *timestamppb.Timestamp

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type ReportServiceClient

type ReportServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (ReportService_GetClient, error)
}

ReportServiceClient is the client API for ReportService 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 ReportServiceServer

type ReportServiceServer interface {
	Get(*GetRequest, ReportService_GetServer) error
	// contains filtered or unexported methods
}

ReportServiceServer is the server API for ReportService service. All implementations must embed UnimplementedReportServiceServer for forward compatibility

type ReportService_GetClient

type ReportService_GetClient interface {
	Recv() (*GetResponse, error)
	grpc.ClientStream
}

type ReportService_GetServer

type ReportService_GetServer interface {
	Send(*GetResponse) error
	grpc.ServerStream
}

type UnimplementedReportServiceServer

type UnimplementedReportServiceServer struct {
}

UnimplementedReportServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedReportServiceServer) Get

type UnsafeReportServiceServer

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

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

Jump to

Keyboard shortcuts

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