credit_card

package
v0.0.0-...-5eae4f1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreditCard_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "CreditCard",
	HandlerType: (*CreditCardServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Validate",
			Handler:    _CreditCard_Validate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "credit-card/credit-server.proto",
}

CreditCard_ServiceDesc is the grpc.ServiceDesc for CreditCard 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_credit_card_credit_server_proto protoreflect.FileDescriptor

Functions

func RegisterCreditCardServer

func RegisterCreditCardServer(s grpc.ServiceRegistrar, srv CreditCardServer)

Types

type Card

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

func (*Card) Descriptor deprecated

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

Deprecated: Use Card.ProtoReflect.Descriptor instead.

func (*Card) GetNumber

func (x *Card) GetNumber() string

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) ProtoReflect

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

func (*Card) Reset

func (x *Card) Reset()

func (*Card) String

func (x *Card) String() string

type CreditCardClient

type CreditCardClient interface {
	Validate(ctx context.Context, in *Card, opts ...grpc.CallOption) (*Status, error)
}

CreditCardClient is the client API for CreditCard 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 NewCreditCardClient

func NewCreditCardClient(cc grpc.ClientConnInterface) CreditCardClient

type CreditCardServer

type CreditCardServer interface {
	Validate(context.Context, *Card) (*Status, error)
	// contains filtered or unexported methods
}

CreditCardServer is the server API for CreditCard service. All implementations must embed UnimplementedCreditCardServer for forward compatibility

type Status

type Status struct {
	Code     int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message  string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Detailed []*any1.Any `protobuf:"bytes,3,rep,name=detailed,proto3" json:"detailed,omitempty"`
	// contains filtered or unexported fields
}

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCode

func (x *Status) GetCode() int32

func (*Status) GetDetailed

func (x *Status) GetDetailed() []*any1.Any

func (*Status) GetMessage

func (x *Status) GetMessage() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type UnimplementedCreditCardServer

type UnimplementedCreditCardServer struct {
}

UnimplementedCreditCardServer must be embedded to have forward compatible implementations.

func (UnimplementedCreditCardServer) Validate

type UnsafeCreditCardServer

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

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

Jump to

Keyboard shortcuts

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