proto

package
v0.0.0-...-316f095 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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 (*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 (*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 (*SendValidatorDiploma_Validator) Reset

func (x *SendValidatorDiploma_Validator) Reset()

func (*SendValidatorDiploma_Validator) String

type UnimplementedAdminBotServiceServer

type UnimplementedAdminBotServiceServer struct {
}

UnimplementedAdminBotServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAdminBotServiceServer) SendFile

func (UnimplementedAdminBotServiceServer) SendText

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) Descriptor() ([]byte, []int)

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetEmail

func (x *Validator) GetEmail() string

func (*Validator) GetFirstName

func (x *Validator) GetFirstName() string

func (*Validator) GetId

func (x *Validator) GetId() string

func (*Validator) GetLastName

func (x *Validator) GetLastName() string

func (*Validator) GetMiddleName

func (x *Validator) GetMiddleName() string

func (*Validator) GetSciences

func (x *Validator) GetSciences() []string

func (*Validator) GetWeb3Address

func (x *Validator) GetWeb3Address() string

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

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

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

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

Jump to

Keyboard shortcuts

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