gen proto files
This commit is contained in:
parent
17414823a3
commit
eb815ba8d4
349
internal/proto/notifyer.pb.go
Normal file
349
internal/proto/notifyer.pb.go
Normal file
@ -0,0 +1,349 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.1
|
||||||
|
// protoc v3.21.12
|
||||||
|
// source: notifyer.proto
|
||||||
|
|
||||||
|
package notifyer
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
type GetQuizzesRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetQuizzesRequest) Reset() {
|
||||||
|
*x = GetQuizzesRequest{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetQuizzesRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetQuizzesRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetQuizzesRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[0]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use GetQuizzesRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetQuizzesRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_notifyer_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetQuizzesRequest) GetAccountId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.AccountId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetQuizzesResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
QuizIds []int64 `protobuf:"varint,1,rep,packed,name=quiz_ids,json=quizIds,proto3" json:"quiz_ids,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetQuizzesResponse) Reset() {
|
||||||
|
*x = GetQuizzesResponse{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetQuizzesResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetQuizzesResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetQuizzesResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[1]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use GetQuizzesResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetQuizzesResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_notifyer_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetQuizzesResponse) GetQuizIds() []int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.QuizIds
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetStartedQuizzesRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesRequest) Reset() {
|
||||||
|
*x = GetStartedQuizzesRequest{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetStartedQuizzesRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[2]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use GetStartedQuizzesRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetStartedQuizzesRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_notifyer_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesRequest) GetAccountId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.AccountId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetStartedQuizzesResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
QuizIds []int64 `protobuf:"varint,1,rep,packed,name=quiz_ids,json=quizIds,proto3" json:"quiz_ids,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesResponse) Reset() {
|
||||||
|
*x = GetStartedQuizzesResponse{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetStartedQuizzesResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_notifyer_proto_msgTypes[3]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use GetStartedQuizzesResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetStartedQuizzesResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_notifyer_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetStartedQuizzesResponse) GetQuizIds() []int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.QuizIds
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_notifyer_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_notifyer_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x12, 0x08, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x65, 0x72, 0x22, 0x32, 0x0a, 0x11, 0x47, 0x65,
|
||||||
|
0x74, 0x51, 0x75, 0x69, 0x7a, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||||
|
0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x2f,
|
||||||
|
0x0a, 0x12, 0x47, 0x65, 0x74, 0x51, 0x75, 0x69, 0x7a, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x69, 0x7a, 0x5f, 0x69, 0x64, 0x73,
|
||||||
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x71, 0x75, 0x69, 0x7a, 0x49, 0x64, 0x73, 0x22,
|
||||||
|
0x39, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x51, 0x75, 0x69,
|
||||||
|
0x7a, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61,
|
||||||
|
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x19, 0x47, 0x65,
|
||||||
|
0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x51, 0x75, 0x69, 0x7a, 0x7a, 0x65, 0x73, 0x52,
|
||||||
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x69, 0x7a, 0x5f,
|
||||||
|
0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x71, 0x75, 0x69, 0x7a, 0x49,
|
||||||
|
0x64, 0x73, 0x32, 0xb8, 0x01, 0x0a, 0x0b, 0x51, 0x75, 0x69, 0x7a, 0x53, 0x65, 0x72, 0x76, 0x69,
|
||||||
|
0x63, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x51, 0x75, 0x69, 0x7a, 0x7a, 0x65, 0x73,
|
||||||
|
0x12, 0x1b, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x51,
|
||||||
|
0x75, 0x69, 0x7a, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
|
||||||
|
0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x69, 0x7a,
|
||||||
|
0x7a, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a,
|
||||||
|
0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x51, 0x75, 0x69, 0x7a, 0x7a,
|
||||||
|
0x65, 0x73, 0x12, 0x22, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x65, 0x72, 0x2e, 0x47, 0x65,
|
||||||
|
0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x51, 0x75, 0x69, 0x7a, 0x7a, 0x65, 0x73, 0x52,
|
||||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x65,
|
||||||
|
0x72, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x51, 0x75, 0x69, 0x7a,
|
||||||
|
0x7a, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x15, 0x5a,
|
||||||
|
0x13, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6e, 0x6f, 0x74, 0x69,
|
||||||
|
0x66, 0x79, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_notifyer_proto_rawDescOnce sync.Once
|
||||||
|
file_notifyer_proto_rawDescData = file_notifyer_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_notifyer_proto_rawDescGZIP() []byte {
|
||||||
|
file_notifyer_proto_rawDescOnce.Do(func() {
|
||||||
|
file_notifyer_proto_rawDescData = protoimpl.X.CompressGZIP(file_notifyer_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_notifyer_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_notifyer_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||||
|
var file_notifyer_proto_goTypes = []interface{}{
|
||||||
|
(*GetQuizzesRequest)(nil), // 0: notifyer.GetQuizzesRequest
|
||||||
|
(*GetQuizzesResponse)(nil), // 1: notifyer.GetQuizzesResponse
|
||||||
|
(*GetStartedQuizzesRequest)(nil), // 2: notifyer.GetStartedQuizzesRequest
|
||||||
|
(*GetStartedQuizzesResponse)(nil), // 3: notifyer.GetStartedQuizzesResponse
|
||||||
|
}
|
||||||
|
var file_notifyer_proto_depIdxs = []int32{
|
||||||
|
0, // 0: notifyer.QuizService.GetQuizzes:input_type -> notifyer.GetQuizzesRequest
|
||||||
|
2, // 1: notifyer.QuizService.GetStartedQuizzes:input_type -> notifyer.GetStartedQuizzesRequest
|
||||||
|
1, // 2: notifyer.QuizService.GetQuizzes:output_type -> notifyer.GetQuizzesResponse
|
||||||
|
3, // 3: notifyer.QuizService.GetStartedQuizzes:output_type -> notifyer.GetStartedQuizzesResponse
|
||||||
|
2, // [2:4] is the sub-list for method output_type
|
||||||
|
0, // [0:2] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_notifyer_proto_init() }
|
||||||
|
func file_notifyer_proto_init() {
|
||||||
|
if File_notifyer_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_notifyer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*GetQuizzesRequest); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_notifyer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*GetQuizzesResponse); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_notifyer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*GetStartedQuizzesRequest); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_notifyer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*GetStartedQuizzesResponse); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_notifyer_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 4,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_notifyer_proto_goTypes,
|
||||||
|
DependencyIndexes: file_notifyer_proto_depIdxs,
|
||||||
|
MessageInfos: file_notifyer_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_notifyer_proto = out.File
|
||||||
|
file_notifyer_proto_rawDesc = nil
|
||||||
|
file_notifyer_proto_goTypes = nil
|
||||||
|
file_notifyer_proto_depIdxs = nil
|
||||||
|
}
|
141
internal/proto/notifyer_grpc.pb.go
Normal file
141
internal/proto/notifyer_grpc.pb.go
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
|
// - protoc v3.21.12
|
||||||
|
// source: notifyer.proto
|
||||||
|
|
||||||
|
package notifyer
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.32.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion7
|
||||||
|
|
||||||
|
// QuizServiceClient is the client API for QuizService 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 QuizServiceClient interface {
|
||||||
|
GetQuizzes(ctx context.Context, in *GetQuizzesRequest, opts ...grpc.CallOption) (*GetQuizzesResponse, error)
|
||||||
|
GetStartedQuizzes(ctx context.Context, in *GetStartedQuizzesRequest, opts ...grpc.CallOption) (*GetStartedQuizzesResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type quizServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewQuizServiceClient(cc grpc.ClientConnInterface) QuizServiceClient {
|
||||||
|
return &quizServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *quizServiceClient) GetQuizzes(ctx context.Context, in *GetQuizzesRequest, opts ...grpc.CallOption) (*GetQuizzesResponse, error) {
|
||||||
|
out := new(GetQuizzesResponse)
|
||||||
|
err := c.cc.Invoke(ctx, "/notifyer.QuizService/GetQuizzes", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *quizServiceClient) GetStartedQuizzes(ctx context.Context, in *GetStartedQuizzesRequest, opts ...grpc.CallOption) (*GetStartedQuizzesResponse, error) {
|
||||||
|
out := new(GetStartedQuizzesResponse)
|
||||||
|
err := c.cc.Invoke(ctx, "/notifyer.QuizService/GetStartedQuizzes", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// QuizServiceServer is the server API for QuizService service.
|
||||||
|
// All implementations must embed UnimplementedQuizServiceServer
|
||||||
|
// for forward compatibility
|
||||||
|
type QuizServiceServer interface {
|
||||||
|
GetQuizzes(context.Context, *GetQuizzesRequest) (*GetQuizzesResponse, error)
|
||||||
|
GetStartedQuizzes(context.Context, *GetStartedQuizzesRequest) (*GetStartedQuizzesResponse, error)
|
||||||
|
mustEmbedUnimplementedQuizServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedQuizServiceServer must be embedded to have forward compatible implementations.
|
||||||
|
type UnimplementedQuizServiceServer struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (UnimplementedQuizServiceServer) GetQuizzes(context.Context, *GetQuizzesRequest) (*GetQuizzesResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetQuizzes not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedQuizServiceServer) GetStartedQuizzes(context.Context, *GetStartedQuizzesRequest) (*GetStartedQuizzesResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetStartedQuizzes not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedQuizServiceServer) mustEmbedUnimplementedQuizServiceServer() {}
|
||||||
|
|
||||||
|
// UnsafeQuizServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to QuizServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeQuizServiceServer interface {
|
||||||
|
mustEmbedUnimplementedQuizServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterQuizServiceServer(s grpc.ServiceRegistrar, srv QuizServiceServer) {
|
||||||
|
s.RegisterService(&QuizService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _QuizService_GetQuizzes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetQuizzesRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(QuizServiceServer).GetQuizzes(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/notifyer.QuizService/GetQuizzes",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(QuizServiceServer).GetQuizzes(ctx, req.(*GetQuizzesRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _QuizService_GetStartedQuizzes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetStartedQuizzesRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(QuizServiceServer).GetStartedQuizzes(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/notifyer.QuizService/GetStartedQuizzes",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(QuizServiceServer).GetStartedQuizzes(ctx, req.(*GetStartedQuizzesRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// QuizService_ServiceDesc is the grpc.ServiceDesc for QuizService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var QuizService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "notifyer.QuizService",
|
||||||
|
HandlerType: (*QuizServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "GetQuizzes",
|
||||||
|
Handler: _QuizService_GetQuizzes_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetStartedQuizzes",
|
||||||
|
Handler: _QuizService_GetStartedQuizzes_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "notifyer.proto",
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user