cmng

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CardManagementService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cmng.CardManagementService",
	HandlerType: (*CardManagementServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "setCard",
			Handler:    _CardManagementService_SetCard_Handler,
		},
		{
			MethodName: "getCard",
			Handler:    _CardManagementService_GetCard_Handler,
		},
		{
			MethodName: "listTransactions",
			Handler:    _CardManagementService_ListTransactions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cmng/cmng.proto",
}

CardManagementService_ServiceDesc is the grpc.ServiceDesc for CardManagementService 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_cmng_cmng_proto protoreflect.FileDescriptor

Functions

func RegisterCardManagementServiceServer

func RegisterCardManagementServiceServer(s grpc.ServiceRegistrar, srv CardManagementServiceServer)

Types

type CardManagementServiceClient

type CardManagementServiceClient interface {
	SetCard(ctx context.Context, in *SetCardRequest, opts ...grpc.CallOption) (*SetCardResponse, error)
	GetCard(ctx context.Context, in *GetCardRequest, opts ...grpc.CallOption) (*GetCardResponse, error)
	ListTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (*GetTransactionsResponse, error)
}

CardManagementServiceClient is the client API for CardManagementService 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 CardManagementServiceServer

type CardManagementServiceServer interface {
	SetCard(context.Context, *SetCardRequest) (*SetCardResponse, error)
	GetCard(context.Context, *GetCardRequest) (*GetCardResponse, error)
	ListTransactions(context.Context, *GetTransactionsRequest) (*GetTransactionsResponse, error)
}

CardManagementServiceServer is the server API for CardManagementService service. All implementations should embed UnimplementedCardManagementServiceServer for forward compatibility

type ClientInfo

type ClientInfo struct {
	ClientIp         string `protobuf:"bytes,1,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
	ClientAgent      string `protobuf:"bytes,2,opt,name=client_agent,json=clientAgent,proto3" json:"client_agent,omitempty"`
	ClientDeviceId   string `protobuf:"bytes,3,opt,name=client_device_id,json=clientDeviceId,proto3" json:"client_device_id,omitempty"`
	ClientVersion    string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
	DistributionCode int32  `protobuf:"varint,5,opt,name=distribution_code,json=distributionCode,proto3" json:"distribution_code,omitempty"`
	ClientOs         string `protobuf:"bytes,6,opt,name=client_os,json=clientOs,proto3" json:"client_os,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientInfo) Descriptor deprecated

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

Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead.

func (*ClientInfo) GetClientAgent

func (x *ClientInfo) GetClientAgent() string

func (*ClientInfo) GetClientDeviceId

func (x *ClientInfo) GetClientDeviceId() string

func (*ClientInfo) GetClientIp

func (x *ClientInfo) GetClientIp() string

func (*ClientInfo) GetClientOs

func (x *ClientInfo) GetClientOs() string

func (*ClientInfo) GetClientVersion

func (x *ClientInfo) GetClientVersion() string

func (*ClientInfo) GetDistributionCode

func (x *ClientInfo) GetDistributionCode() int32

func (*ClientInfo) ProtoMessage

func (*ClientInfo) ProtoMessage()

func (*ClientInfo) ProtoReflect

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

func (*ClientInfo) Reset

func (x *ClientInfo) Reset()

func (*ClientInfo) String

func (x *ClientInfo) String() string

type GetCardRequest

type GetCardRequest struct {
	ClientInfo     *ClientInfo     `protobuf:"bytes,1,opt,name=client_info,json=clientInfo,proto3" json:"client_info,omitempty"`
	RequestGeneral *RequestGeneral `protobuf:"bytes,2,opt,name=request_general,json=requestGeneral,proto3" json:"request_general,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCardRequest) Descriptor deprecated

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

Deprecated: Use GetCardRequest.ProtoReflect.Descriptor instead.

func (*GetCardRequest) GetClientInfo

func (x *GetCardRequest) GetClientInfo() *ClientInfo

func (*GetCardRequest) GetRequestGeneral

func (x *GetCardRequest) GetRequestGeneral() *RequestGeneral

func (*GetCardRequest) ProtoMessage

func (*GetCardRequest) ProtoMessage()

func (*GetCardRequest) ProtoReflect

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

func (*GetCardRequest) Reset

func (x *GetCardRequest) Reset()

func (*GetCardRequest) String

func (x *GetCardRequest) String() string

type GetCardResponse

type GetCardResponse struct {
	ResponseGeneral *ResponseGeneral `protobuf:"bytes,1,opt,name=response_general,json=responseGeneral,proto3" json:"response_general,omitempty"`
	CardNumber      string           `protobuf:"bytes,2,opt,name=card_number,json=cardNumber,proto3" json:"card_number,omitempty"`
	Expiration      string           `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Cvv2            string           `protobuf:"bytes,4,opt,name=cvv2,proto3" json:"cvv2,omitempty"`
	Balance         string           `protobuf:"bytes,5,opt,name=balance,proto3" json:"balance,omitempty"`
	Credit          string           `protobuf:"bytes,6,opt,name=credit,proto3" json:"credit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCardResponse) Descriptor deprecated

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

Deprecated: Use GetCardResponse.ProtoReflect.Descriptor instead.

func (*GetCardResponse) GetBalance

func (x *GetCardResponse) GetBalance() string

func (*GetCardResponse) GetCardNumber

func (x *GetCardResponse) GetCardNumber() string

func (*GetCardResponse) GetCredit

func (x *GetCardResponse) GetCredit() string

func (*GetCardResponse) GetCvv2

func (x *GetCardResponse) GetCvv2() string

func (*GetCardResponse) GetExpiration

func (x *GetCardResponse) GetExpiration() string

func (*GetCardResponse) GetResponseGeneral

func (x *GetCardResponse) GetResponseGeneral() *ResponseGeneral

func (*GetCardResponse) ProtoMessage

func (*GetCardResponse) ProtoMessage()

func (*GetCardResponse) ProtoReflect

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

func (*GetCardResponse) Reset

func (x *GetCardResponse) Reset()

func (*GetCardResponse) String

func (x *GetCardResponse) String() string

type GetTransactionsRequest added in v0.1.5

type GetTransactionsRequest struct {
	ClientInfo     *ClientInfo     `protobuf:"bytes,1,opt,name=client_info,json=clientInfo,proto3" json:"client_info,omitempty"`
	RequestGeneral *RequestGeneral `protobuf:"bytes,2,opt,name=request_general,json=requestGeneral,proto3" json:"request_general,omitempty"`
	Page           int64           `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	Limit          int32           `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	CardNumber     string          `protobuf:"bytes,5,opt,name=card_number,json=cardNumber,proto3" json:"card_number,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTransactionsRequest) Descriptor deprecated added in v0.1.5

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

Deprecated: Use GetTransactionsRequest.ProtoReflect.Descriptor instead.

func (*GetTransactionsRequest) GetCardNumber added in v0.1.5

func (x *GetTransactionsRequest) GetCardNumber() string

func (*GetTransactionsRequest) GetClientInfo added in v0.1.5

func (x *GetTransactionsRequest) GetClientInfo() *ClientInfo

func (*GetTransactionsRequest) GetLimit added in v0.1.5

func (x *GetTransactionsRequest) GetLimit() int32

func (*GetTransactionsRequest) GetPage added in v0.1.5

func (x *GetTransactionsRequest) GetPage() int64

func (*GetTransactionsRequest) GetRequestGeneral added in v0.1.5

func (x *GetTransactionsRequest) GetRequestGeneral() *RequestGeneral

func (*GetTransactionsRequest) ProtoMessage added in v0.1.5

func (*GetTransactionsRequest) ProtoMessage()

func (*GetTransactionsRequest) ProtoReflect added in v0.1.5

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

func (*GetTransactionsRequest) Reset added in v0.1.5

func (x *GetTransactionsRequest) Reset()

func (*GetTransactionsRequest) String added in v0.1.5

func (x *GetTransactionsRequest) String() string

type GetTransactionsResponse added in v0.1.5

type GetTransactionsResponse struct {
	ResponseGeneral *ResponseGeneral   `protobuf:"bytes,1,opt,name=response_general,json=responseGeneral,proto3" json:"response_general,omitempty"`
	Page            int64              `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Limit           int32              `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Transactions    []*TransactionItem `protobuf:"bytes,4,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTransactionsResponse) Descriptor deprecated added in v0.1.5

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

Deprecated: Use GetTransactionsResponse.ProtoReflect.Descriptor instead.

func (*GetTransactionsResponse) GetLimit added in v0.1.5

func (x *GetTransactionsResponse) GetLimit() int32

func (*GetTransactionsResponse) GetPage added in v0.1.5

func (x *GetTransactionsResponse) GetPage() int64

func (*GetTransactionsResponse) GetResponseGeneral added in v0.1.5

func (x *GetTransactionsResponse) GetResponseGeneral() *ResponseGeneral

func (*GetTransactionsResponse) GetTransactions added in v0.1.5

func (x *GetTransactionsResponse) GetTransactions() []*TransactionItem

func (*GetTransactionsResponse) ProtoMessage added in v0.1.5

func (*GetTransactionsResponse) ProtoMessage()

func (*GetTransactionsResponse) ProtoReflect added in v0.1.5

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

func (*GetTransactionsResponse) Reset added in v0.1.5

func (x *GetTransactionsResponse) Reset()

func (*GetTransactionsResponse) String added in v0.1.5

func (x *GetTransactionsResponse) String() string

type RequestGeneral

type RequestGeneral struct {
	MobileNumber string `protobuf:"bytes,1,opt,name=mobile_number,json=mobileNumber,proto3" json:"mobile_number,omitempty"`
	AccountId    int64  `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	RequestId    int64  `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	RequestTime  int64  `protobuf:"varint,4,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
	AppId        int64  `protobuf:"varint,5,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	Language     string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGeneral) Descriptor deprecated

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

Deprecated: Use RequestGeneral.ProtoReflect.Descriptor instead.

func (*RequestGeneral) GetAccountId

func (x *RequestGeneral) GetAccountId() int64

func (*RequestGeneral) GetAppId

func (x *RequestGeneral) GetAppId() int64

func (*RequestGeneral) GetLanguage

func (x *RequestGeneral) GetLanguage() string

func (*RequestGeneral) GetMobileNumber

func (x *RequestGeneral) GetMobileNumber() string

func (*RequestGeneral) GetRequestId

func (x *RequestGeneral) GetRequestId() int64

func (*RequestGeneral) GetRequestTime

func (x *RequestGeneral) GetRequestTime() int64

func (*RequestGeneral) ProtoMessage

func (*RequestGeneral) ProtoMessage()

func (*RequestGeneral) ProtoReflect

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

func (*RequestGeneral) Reset

func (x *RequestGeneral) Reset()

func (*RequestGeneral) String

func (x *RequestGeneral) String() string

type ResponseGeneral

type ResponseGeneral struct {
	Status        int32  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseGeneral) Descriptor deprecated

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

Deprecated: Use ResponseGeneral.ProtoReflect.Descriptor instead.

func (*ResponseGeneral) GetStatus

func (x *ResponseGeneral) GetStatus() int32

func (*ResponseGeneral) GetStatusMessage

func (x *ResponseGeneral) GetStatusMessage() string

func (*ResponseGeneral) ProtoMessage

func (*ResponseGeneral) ProtoMessage()

func (*ResponseGeneral) ProtoReflect

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

func (*ResponseGeneral) Reset

func (x *ResponseGeneral) Reset()

func (*ResponseGeneral) String

func (x *ResponseGeneral) String() string

type SetCardRequest added in v0.1.5

type SetCardRequest struct {
	ClientInfo     *ClientInfo     `protobuf:"bytes,1,opt,name=client_info,json=clientInfo,proto3" json:"client_info,omitempty"`
	RequestGeneral *RequestGeneral `protobuf:"bytes,2,opt,name=request_general,json=requestGeneral,proto3" json:"request_general,omitempty"`
	CardNumber     string          `protobuf:"bytes,3,opt,name=card_number,json=cardNumber,proto3" json:"card_number,omitempty"`
	Expiration     string          `protobuf:"bytes,4,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Cvv2           string          `protobuf:"bytes,5,opt,name=cvv2,proto3" json:"cvv2,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCardRequest) Descriptor deprecated added in v0.1.5

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

Deprecated: Use SetCardRequest.ProtoReflect.Descriptor instead.

func (*SetCardRequest) GetCardNumber added in v0.1.5

func (x *SetCardRequest) GetCardNumber() string

func (*SetCardRequest) GetClientInfo added in v0.1.5

func (x *SetCardRequest) GetClientInfo() *ClientInfo

func (*SetCardRequest) GetCvv2 added in v0.1.5

func (x *SetCardRequest) GetCvv2() string

func (*SetCardRequest) GetExpiration added in v0.1.5

func (x *SetCardRequest) GetExpiration() string

func (*SetCardRequest) GetRequestGeneral added in v0.1.5

func (x *SetCardRequest) GetRequestGeneral() *RequestGeneral

func (*SetCardRequest) ProtoMessage added in v0.1.5

func (*SetCardRequest) ProtoMessage()

func (*SetCardRequest) ProtoReflect added in v0.1.5

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

func (*SetCardRequest) Reset added in v0.1.5

func (x *SetCardRequest) Reset()

func (*SetCardRequest) String added in v0.1.5

func (x *SetCardRequest) String() string

type SetCardResponse added in v0.1.5

type SetCardResponse struct {
	ResponseGeneral *ResponseGeneral `protobuf:"bytes,1,opt,name=response_general,json=responseGeneral,proto3" json:"response_general,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCardResponse) Descriptor deprecated added in v0.1.5

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

Deprecated: Use SetCardResponse.ProtoReflect.Descriptor instead.

func (*SetCardResponse) GetResponseGeneral added in v0.1.5

func (x *SetCardResponse) GetResponseGeneral() *ResponseGeneral

func (*SetCardResponse) ProtoMessage added in v0.1.5

func (*SetCardResponse) ProtoMessage()

func (*SetCardResponse) ProtoReflect added in v0.1.5

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

func (*SetCardResponse) Reset added in v0.1.5

func (x *SetCardResponse) Reset()

func (*SetCardResponse) String added in v0.1.5

func (x *SetCardResponse) String() string

type TransactionItem added in v0.1.5

type TransactionItem struct {
	AppliedAmount            int64  `protobuf:"varint,1,opt,name=applied_amount,json=appliedAmount,proto3" json:"applied_amount,omitempty"`
	Status                   string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Date                     int64  `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"`
	Time                     int64  `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
	AppliedAmountDescription string `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TransactionItem) Descriptor deprecated added in v0.1.5

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

Deprecated: Use TransactionItem.ProtoReflect.Descriptor instead.

func (*TransactionItem) GetAppliedAmount added in v0.1.5

func (x *TransactionItem) GetAppliedAmount() int64

func (*TransactionItem) GetAppliedAmountDescription added in v0.1.5

func (x *TransactionItem) GetAppliedAmountDescription() string

func (*TransactionItem) GetDate added in v0.1.5

func (x *TransactionItem) GetDate() int64

func (*TransactionItem) GetStatus added in v0.1.5

func (x *TransactionItem) GetStatus() string

func (*TransactionItem) GetTime added in v0.1.5

func (x *TransactionItem) GetTime() int64

func (*TransactionItem) ProtoMessage added in v0.1.5

func (*TransactionItem) ProtoMessage()

func (*TransactionItem) ProtoReflect added in v0.1.5

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

func (*TransactionItem) Reset added in v0.1.5

func (x *TransactionItem) Reset()

func (*TransactionItem) String added in v0.1.5

func (x *TransactionItem) String() string

type UnimplementedCardManagementServiceServer

type UnimplementedCardManagementServiceServer struct {
}

UnimplementedCardManagementServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCardManagementServiceServer) GetCard

func (UnimplementedCardManagementServiceServer) ListTransactions added in v0.1.5

func (UnimplementedCardManagementServiceServer) SetCard added in v0.1.5

type UnsafeCardManagementServiceServer

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

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

Jump to

Keyboard shortcuts

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