Documentation ¶
Index ¶
- Variables
- func RegisterAdminBotServiceServer(s grpc.ServiceRegistrar, srv AdminBotServiceServer)
- type AdminBotServiceClient
- type AdminBotServiceServer
- type SendValidatorDiploma
- func (*SendValidatorDiploma) Descriptor() ([]byte, []int)deprecated
- func (x *SendValidatorDiploma) GetFile() []byte
- func (x *SendValidatorDiploma) GetFileExtension() string
- func (x *SendValidatorDiploma) GetValidator() *SendValidatorDiploma_Validator
- func (*SendValidatorDiploma) ProtoMessage()
- func (x *SendValidatorDiploma) ProtoReflect() protoreflect.Message
- func (x *SendValidatorDiploma) Reset()
- func (x *SendValidatorDiploma) String() string
- type SendValidatorDiploma_Validator
- func (*SendValidatorDiploma_Validator) Descriptor() ([]byte, []int)deprecated
- func (x *SendValidatorDiploma_Validator) GetEmail() string
- func (x *SendValidatorDiploma_Validator) GetFirstName() string
- func (x *SendValidatorDiploma_Validator) GetId() string
- func (x *SendValidatorDiploma_Validator) GetLastName() string
- func (x *SendValidatorDiploma_Validator) GetMiddleName() string
- func (x *SendValidatorDiploma_Validator) GetSciences() []string
- func (x *SendValidatorDiploma_Validator) GetWeb3Address() string
- func (*SendValidatorDiploma_Validator) ProtoMessage()
- func (x *SendValidatorDiploma_Validator) ProtoReflect() protoreflect.Message
- func (x *SendValidatorDiploma_Validator) Reset()
- func (x *SendValidatorDiploma_Validator) String() string
- type UnimplementedAdminBotServiceServer
- type UnsafeAdminBotServiceServer
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)deprecated
- func (x *Validator) GetEmail() string
- func (x *Validator) GetFirstName() string
- func (x *Validator) GetId() string
- func (x *Validator) GetLastName() string
- func (x *Validator) GetMiddleName() string
- func (x *Validator) GetSciences() []string
- func (x *Validator) GetWeb3Address() string
- func (*Validator) ProtoMessage()
- func (x *Validator) ProtoReflect() protoreflect.Message
- func (x *Validator) Reset()
- func (x *Validator) String() string
- type ValidatorDiplomaText
- func (*ValidatorDiplomaText) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatorDiplomaText) GetCountry() string
- func (x *ValidatorDiplomaText) GetDiplomaDate() string
- func (x *ValidatorDiplomaText) GetDiplomaNumber() string
- func (x *ValidatorDiplomaText) GetDiplomaSeries() string
- func (x *ValidatorDiplomaText) GetValidator() *Validator
- func (*ValidatorDiplomaText) ProtoMessage()
- func (x *ValidatorDiplomaText) ProtoReflect() protoreflect.Message
- func (x *ValidatorDiplomaText) Reset()
- func (x *ValidatorDiplomaText) String() string
Constants ¶
This section is empty.
Variables ¶
var AdminBotService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pp.adminbot.AdminBotService", HandlerType: (*AdminBotServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendFile", Handler: _AdminBotService_SendFile_Handler, }, { MethodName: "SendText", Handler: _AdminBotService_SendText_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin-bot-srv/admin_bot.proto", }
AdminBotService_ServiceDesc is the grpc.ServiceDesc for AdminBotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_admin_bot_srv_admin_bot_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminBotServiceServer ¶
func RegisterAdminBotServiceServer(s grpc.ServiceRegistrar, srv AdminBotServiceServer)
Types ¶
type AdminBotServiceClient ¶
type AdminBotServiceClient interface { SendFile(ctx context.Context, in *SendValidatorDiploma, opts ...grpc.CallOption) (*emptypb.Empty, error) SendText(ctx context.Context, in *ValidatorDiplomaText, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AdminBotServiceClient is the client API for AdminBotService 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 NewAdminBotServiceClient ¶
func NewAdminBotServiceClient(cc grpc.ClientConnInterface) AdminBotServiceClient
type AdminBotServiceServer ¶
type AdminBotServiceServer interface { SendFile(context.Context, *SendValidatorDiploma) (*emptypb.Empty, error) SendText(context.Context, *ValidatorDiplomaText) (*emptypb.Empty, error) // contains filtered or unexported methods }
AdminBotServiceServer is the server API for AdminBotService service. All implementations must embed UnimplementedAdminBotServiceServer for forward compatibility
type SendValidatorDiploma ¶
type SendValidatorDiploma struct { File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` FileExtension string `protobuf:"bytes,2,opt,name=file_extension,json=fileExtension,proto3" json:"file_extension,omitempty"` Validator *SendValidatorDiploma_Validator `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*SendValidatorDiploma) Descriptor
deprecated
func (*SendValidatorDiploma) Descriptor() ([]byte, []int)
Deprecated: Use SendValidatorDiploma.ProtoReflect.Descriptor instead.
func (*SendValidatorDiploma) GetFile ¶
func (x *SendValidatorDiploma) GetFile() []byte
func (*SendValidatorDiploma) GetFileExtension ¶
func (x *SendValidatorDiploma) GetFileExtension() string
func (*SendValidatorDiploma) GetValidator ¶
func (x *SendValidatorDiploma) GetValidator() *SendValidatorDiploma_Validator
func (*SendValidatorDiploma) ProtoMessage ¶
func (*SendValidatorDiploma) ProtoMessage()
func (*SendValidatorDiploma) ProtoReflect ¶
func (x *SendValidatorDiploma) ProtoReflect() protoreflect.Message
func (*SendValidatorDiploma) Reset ¶
func (x *SendValidatorDiploma) Reset()
func (*SendValidatorDiploma) String ¶
func (x *SendValidatorDiploma) String() string
type SendValidatorDiploma_Validator ¶
type SendValidatorDiploma_Validator struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Sciences []string `protobuf:"bytes,6,rep,name=sciences,proto3" json:"sciences,omitempty"` Web3Address string `protobuf:"bytes,7,opt,name=web3_address,json=web3Address,proto3" json:"web3_address,omitempty"` // contains filtered or unexported fields }
func (*SendValidatorDiploma_Validator) Descriptor
deprecated
func (*SendValidatorDiploma_Validator) Descriptor() ([]byte, []int)
Deprecated: Use SendValidatorDiploma_Validator.ProtoReflect.Descriptor instead.
func (*SendValidatorDiploma_Validator) GetEmail ¶
func (x *SendValidatorDiploma_Validator) GetEmail() string
func (*SendValidatorDiploma_Validator) GetFirstName ¶
func (x *SendValidatorDiploma_Validator) GetFirstName() string
func (*SendValidatorDiploma_Validator) GetId ¶
func (x *SendValidatorDiploma_Validator) GetId() string
func (*SendValidatorDiploma_Validator) GetLastName ¶
func (x *SendValidatorDiploma_Validator) GetLastName() string
func (*SendValidatorDiploma_Validator) GetMiddleName ¶
func (x *SendValidatorDiploma_Validator) GetMiddleName() string
func (*SendValidatorDiploma_Validator) GetSciences ¶
func (x *SendValidatorDiploma_Validator) GetSciences() []string
func (*SendValidatorDiploma_Validator) GetWeb3Address ¶
func (x *SendValidatorDiploma_Validator) GetWeb3Address() string
func (*SendValidatorDiploma_Validator) ProtoMessage ¶
func (*SendValidatorDiploma_Validator) ProtoMessage()
func (*SendValidatorDiploma_Validator) ProtoReflect ¶
func (x *SendValidatorDiploma_Validator) ProtoReflect() protoreflect.Message
func (*SendValidatorDiploma_Validator) Reset ¶
func (x *SendValidatorDiploma_Validator) Reset()
func (*SendValidatorDiploma_Validator) String ¶
func (x *SendValidatorDiploma_Validator) String() string
type UnimplementedAdminBotServiceServer ¶
type UnimplementedAdminBotServiceServer struct { }
UnimplementedAdminBotServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAdminBotServiceServer) SendFile ¶
func (UnimplementedAdminBotServiceServer) SendFile(context.Context, *SendValidatorDiploma) (*emptypb.Empty, error)
func (UnimplementedAdminBotServiceServer) SendText ¶
func (UnimplementedAdminBotServiceServer) SendText(context.Context, *ValidatorDiplomaText) (*emptypb.Empty, error)
type UnsafeAdminBotServiceServer ¶
type UnsafeAdminBotServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdminBotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminBotServiceServer will result in compilation errors.
type Validator ¶
type Validator struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Sciences []string `protobuf:"bytes,6,rep,name=sciences,proto3" json:"sciences,omitempty"` Web3Address string `protobuf:"bytes,7,opt,name=web3_address,json=web3Address,proto3" json:"web3_address,omitempty"` // contains filtered or unexported fields }
func (*Validator) Descriptor
deprecated
func (*Validator) GetFirstName ¶
func (*Validator) GetLastName ¶
func (*Validator) GetMiddleName ¶
func (*Validator) GetSciences ¶
func (*Validator) GetWeb3Address ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) ProtoReflect ¶
func (x *Validator) ProtoReflect() protoreflect.Message
type ValidatorDiplomaText ¶
type ValidatorDiplomaText struct { DiplomaSeries string `protobuf:"bytes,1,opt,name=diploma_series,json=diplomaSeries,proto3" json:"diploma_series,omitempty"` DiplomaNumber string `protobuf:"bytes,2,opt,name=diploma_number,json=diplomaNumber,proto3" json:"diploma_number,omitempty"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"` DiplomaDate string `protobuf:"bytes,4,opt,name=diploma_date,json=diplomaDate,proto3" json:"diploma_date,omitempty"` Validator *Validator `protobuf:"bytes,5,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*ValidatorDiplomaText) Descriptor
deprecated
func (*ValidatorDiplomaText) Descriptor() ([]byte, []int)
Deprecated: Use ValidatorDiplomaText.ProtoReflect.Descriptor instead.
func (*ValidatorDiplomaText) GetCountry ¶
func (x *ValidatorDiplomaText) GetCountry() string
func (*ValidatorDiplomaText) GetDiplomaDate ¶
func (x *ValidatorDiplomaText) GetDiplomaDate() string
func (*ValidatorDiplomaText) GetDiplomaNumber ¶
func (x *ValidatorDiplomaText) GetDiplomaNumber() string
func (*ValidatorDiplomaText) GetDiplomaSeries ¶
func (x *ValidatorDiplomaText) GetDiplomaSeries() string
func (*ValidatorDiplomaText) GetValidator ¶
func (x *ValidatorDiplomaText) GetValidator() *Validator
func (*ValidatorDiplomaText) ProtoMessage ¶
func (*ValidatorDiplomaText) ProtoMessage()
func (*ValidatorDiplomaText) ProtoReflect ¶
func (x *ValidatorDiplomaText) ProtoReflect() protoreflect.Message
func (*ValidatorDiplomaText) Reset ¶
func (x *ValidatorDiplomaText) Reset()
func (*ValidatorDiplomaText) String ¶
func (x *ValidatorDiplomaText) String() string