proto

package
v0.0.0-...-e0ef36e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MpassService_SignUp_FullMethodName     = "/pb.MpassService/SignUp"
	MpassService_SignIn_FullMethodName     = "/pb.MpassService/SignIn"
	MpassService_AddRecords_FullMethodName = "/pb.MpassService/AddRecords"
	MpassService_AllRecords_FullMethodName = "/pb.MpassService/AllRecords"
)

Variables

View Source
var File_proto_mpass_proto protoreflect.FileDescriptor
View Source
var MpassService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.MpassService",
	HandlerType: (*MpassServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignUp",
			Handler:    _MpassService_SignUp_Handler,
		},
		{
			MethodName: "SignIn",
			Handler:    _MpassService_SignIn_Handler,
		},
		{
			MethodName: "AddRecords",
			Handler:    _MpassService_AddRecords_Handler,
		},
		{
			MethodName: "AllRecords",
			Handler:    _MpassService_AllRecords_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/mpass.proto",
}

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

Functions

func RegisterMpassServiceServer

func RegisterMpassServiceServer(s grpc.ServiceRegistrar, srv MpassServiceServer)

Types

type AddRecordsRequest

type AddRecordsRequest struct {
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRecordsRequest) Descriptor deprecated

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

Deprecated: Use AddRecordsRequest.ProtoReflect.Descriptor instead.

func (*AddRecordsRequest) GetRecords

func (x *AddRecordsRequest) GetRecords() []*Record

func (*AddRecordsRequest) ProtoMessage

func (*AddRecordsRequest) ProtoMessage()

func (*AddRecordsRequest) ProtoReflect

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

func (*AddRecordsRequest) Reset

func (x *AddRecordsRequest) Reset()

func (*AddRecordsRequest) String

func (x *AddRecordsRequest) String() string

type AllRecordsResponse

type AllRecordsResponse struct {
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*AllRecordsResponse) Descriptor deprecated

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

Deprecated: Use AllRecordsResponse.ProtoReflect.Descriptor instead.

func (*AllRecordsResponse) GetRecords

func (x *AllRecordsResponse) GetRecords() []*Record

func (*AllRecordsResponse) ProtoMessage

func (*AllRecordsResponse) ProtoMessage()

func (*AllRecordsResponse) ProtoReflect

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

func (*AllRecordsResponse) Reset

func (x *AllRecordsResponse) Reset()

func (*AllRecordsResponse) String

func (x *AllRecordsResponse) String() string

type BankCardRecord

type BankCardRecord struct {
	CardCode string `protobuf:"bytes,1,opt,name=card_code,json=cardCode,proto3" json:"card_code,omitempty"`
	Month    uint32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
	Day      uint32 `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
	Code     uint32 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*BankCardRecord) Descriptor deprecated

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

Deprecated: Use BankCardRecord.ProtoReflect.Descriptor instead.

func (*BankCardRecord) GetCardCode

func (x *BankCardRecord) GetCardCode() string

func (*BankCardRecord) GetCode

func (x *BankCardRecord) GetCode() uint32

func (*BankCardRecord) GetDay

func (x *BankCardRecord) GetDay() uint32

func (*BankCardRecord) GetMonth

func (x *BankCardRecord) GetMonth() uint32

func (*BankCardRecord) ProtoMessage

func (*BankCardRecord) ProtoMessage()

func (*BankCardRecord) ProtoReflect

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

func (*BankCardRecord) Reset

func (x *BankCardRecord) Reset()

func (*BankCardRecord) String

func (x *BankCardRecord) String() string

type BinaryRecord

type BinaryRecord struct {
	Binary []byte `protobuf:"bytes,1,opt,name=binary,proto3" json:"binary,omitempty"`
	// contains filtered or unexported fields
}

func (*BinaryRecord) Descriptor deprecated

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

Deprecated: Use BinaryRecord.ProtoReflect.Descriptor instead.

func (*BinaryRecord) GetBinary

func (x *BinaryRecord) GetBinary() []byte

func (*BinaryRecord) ProtoMessage

func (*BinaryRecord) ProtoMessage()

func (*BinaryRecord) ProtoReflect

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

func (*BinaryRecord) Reset

func (x *BinaryRecord) Reset()

func (*BinaryRecord) String

func (x *BinaryRecord) String() string

type LoginPasswordRecord

type LoginPasswordRecord struct {
	Login    string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginPasswordRecord) Descriptor deprecated

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

Deprecated: Use LoginPasswordRecord.ProtoReflect.Descriptor instead.

func (*LoginPasswordRecord) GetLogin

func (x *LoginPasswordRecord) GetLogin() string

func (*LoginPasswordRecord) GetPassword

func (x *LoginPasswordRecord) GetPassword() string

func (*LoginPasswordRecord) ProtoMessage

func (*LoginPasswordRecord) ProtoMessage()

func (*LoginPasswordRecord) ProtoReflect

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

func (*LoginPasswordRecord) Reset

func (x *LoginPasswordRecord) Reset()

func (*LoginPasswordRecord) String

func (x *LoginPasswordRecord) String() string

type MpassServiceClient

type MpassServiceClient interface {
	SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error)
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error)
	AddRecords(ctx context.Context, in *AddRecordsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	AllRecords(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AllRecordsResponse, error)
}

MpassServiceClient is the client API for MpassService 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 MpassServiceServer

type MpassServiceServer interface {
	SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
	SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
	AddRecords(context.Context, *AddRecordsRequest) (*empty.Empty, error)
	AllRecords(context.Context, *empty.Empty) (*AllRecordsResponse, error)
	// contains filtered or unexported methods
}

MpassServiceServer is the server API for MpassService service. All implementations must embed UnimplementedMpassServiceServer for forward compatibility

type Record

type Record struct {
	Id             string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	LastUpdateDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=lastUpdateDate,proto3" json:"lastUpdateDate,omitempty"`
	// Types that are assignable to Record:
	//
	//	*Record_LoginPasswordRecord
	//	*Record_TextRecord
	//	*Record_BinaryRecord
	//	*Record_BankCardRecord
	Record isRecord_Record `protobuf_oneof:"record"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetBankCardRecord

func (x *Record) GetBankCardRecord() *BankCardRecord

func (*Record) GetBinaryRecord

func (x *Record) GetBinaryRecord() *BinaryRecord

func (*Record) GetId

func (x *Record) GetId() string

func (*Record) GetLastUpdateDate

func (x *Record) GetLastUpdateDate() *timestamp.Timestamp

func (*Record) GetLoginPasswordRecord

func (x *Record) GetLoginPasswordRecord() *LoginPasswordRecord

func (*Record) GetRecord

func (m *Record) GetRecord() isRecord_Record

func (*Record) GetTextRecord

func (x *Record) GetTextRecord() *TextRecord

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type Record_BankCardRecord

type Record_BankCardRecord struct {
	BankCardRecord *BankCardRecord `protobuf:"bytes,6,opt,name=bankCardRecord,proto3,oneof"`
}

type Record_BinaryRecord

type Record_BinaryRecord struct {
	BinaryRecord *BinaryRecord `protobuf:"bytes,5,opt,name=binaryRecord,proto3,oneof"`
}

type Record_LoginPasswordRecord

type Record_LoginPasswordRecord struct {
	LoginPasswordRecord *LoginPasswordRecord `protobuf:"bytes,3,opt,name=loginPasswordRecord,proto3,oneof"`
}

type Record_TextRecord

type Record_TextRecord struct {
	TextRecord *TextRecord `protobuf:"bytes,4,opt,name=textRecord,proto3,oneof"`
}

type SignInRequest

type SignInRequest struct {
	Login    string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInRequest) Descriptor deprecated

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

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetLogin

func (x *SignInRequest) GetLogin() string

func (*SignInRequest) GetPassword

func (x *SignInRequest) GetPassword() string

func (*SignInRequest) ProtoMessage

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) ProtoReflect

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

func (*SignInRequest) Reset

func (x *SignInRequest) Reset()

func (*SignInRequest) String

func (x *SignInRequest) String() string

type SignInResponse

type SignInResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInResponse) Descriptor deprecated

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

Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.

func (*SignInResponse) GetToken

func (x *SignInResponse) GetToken() string

func (*SignInResponse) ProtoMessage

func (*SignInResponse) ProtoMessage()

func (*SignInResponse) ProtoReflect

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

func (*SignInResponse) Reset

func (x *SignInResponse) Reset()

func (*SignInResponse) String

func (x *SignInResponse) String() string

type SignUpRequest

type SignUpRequest struct {
	Login    string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SignUpRequest) Descriptor deprecated

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

Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.

func (*SignUpRequest) GetLogin

func (x *SignUpRequest) GetLogin() string

func (*SignUpRequest) GetPassword

func (x *SignUpRequest) GetPassword() string

func (*SignUpRequest) ProtoMessage

func (*SignUpRequest) ProtoMessage()

func (*SignUpRequest) ProtoReflect

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

func (*SignUpRequest) Reset

func (x *SignUpRequest) Reset()

func (*SignUpRequest) String

func (x *SignUpRequest) String() string

type SignUpResponse

type SignUpResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignUpResponse) Descriptor deprecated

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

Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.

func (*SignUpResponse) GetToken

func (x *SignUpResponse) GetToken() string

func (*SignUpResponse) ProtoMessage

func (*SignUpResponse) ProtoMessage()

func (*SignUpResponse) ProtoReflect

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

func (*SignUpResponse) Reset

func (x *SignUpResponse) Reset()

func (*SignUpResponse) String

func (x *SignUpResponse) String() string

type TextRecord

type TextRecord struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*TextRecord) Descriptor deprecated

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

Deprecated: Use TextRecord.ProtoReflect.Descriptor instead.

func (*TextRecord) GetText

func (x *TextRecord) GetText() string

func (*TextRecord) ProtoMessage

func (*TextRecord) ProtoMessage()

func (*TextRecord) ProtoReflect

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

func (*TextRecord) Reset

func (x *TextRecord) Reset()

func (*TextRecord) String

func (x *TextRecord) String() string

type UnimplementedMpassServiceServer

type UnimplementedMpassServiceServer struct {
}

UnimplementedMpassServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMpassServiceServer) AddRecords

func (UnimplementedMpassServiceServer) AllRecords

func (UnimplementedMpassServiceServer) SignIn

func (UnimplementedMpassServiceServer) SignUp

type UnsafeMpassServiceServer

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

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

Jump to

Keyboard shortcuts

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