netxd_customer

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "netxd_customer.CustomerService",
	HandlerType: (*CustomerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCustomer",
			Handler:    _CustomerService_CreateCustomer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/customer.proto",
}

CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService 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_protos_customer_proto protoreflect.FileDescriptor

Functions

func RegisterCustomerServiceServer

func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)

Types

type Customer

type Customer struct {
	Customer_ID int32  `protobuf:"varint,1,opt,name=Customer_ID,json=CustomerID,proto3" json:"Customer_ID,omitempty"`
	First_Name  string `protobuf:"bytes,2,opt,name=First_Name,json=FirstName,proto3" json:"First_Name,omitempty"`
	Last_Name   string `protobuf:"bytes,3,opt,name=Last_Name,json=LastName,proto3" json:"Last_Name,omitempty"`
	Bank_ID     int32  `protobuf:"varint,4,opt,name=Bank_ID,json=BankID,proto3" json:"Bank_ID,omitempty"`
	Balance     int32  `protobuf:"varint,5,opt,name=Balance,proto3" json:"Balance,omitempty"`
	Created_At  string `protobuf:"bytes,6,opt,name=Created_At,json=CreatedAt,proto3" json:"Created_At,omitempty"`
	Updated_At  string `protobuf:"bytes,7,opt,name=Updated_At,json=UpdatedAt,proto3" json:"Updated_At,omitempty"`
	ISActive    string `protobuf:"bytes,8,opt,name=ISActive,proto3" json:"ISActive,omitempty"`
	// contains filtered or unexported fields
}

func (*Customer) Descriptor deprecated

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

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetBalance

func (x *Customer) GetBalance() int32

func (*Customer) GetBank_ID

func (x *Customer) GetBank_ID() int32

func (*Customer) GetCreated_At

func (x *Customer) GetCreated_At() string

func (*Customer) GetCustomer_ID

func (x *Customer) GetCustomer_ID() int32

func (*Customer) GetFirst_Name

func (x *Customer) GetFirst_Name() string

func (*Customer) GetISActive

func (x *Customer) GetISActive() string

func (*Customer) GetLast_Name

func (x *Customer) GetLast_Name() string

func (*Customer) GetUpdated_At

func (x *Customer) GetUpdated_At() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

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

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

type CustomerResponse

type CustomerResponse struct {
	Customer_ID int32  `protobuf:"varint,1,opt,name=Customer_ID,json=CustomerID,proto3" json:"Customer_ID,omitempty"`
	Create_At   string `protobuf:"bytes,2,opt,name=Create_At,json=CreateAt,proto3" json:"Create_At,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomerResponse) Descriptor deprecated

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

Deprecated: Use CustomerResponse.ProtoReflect.Descriptor instead.

func (*CustomerResponse) GetCreate_At

func (x *CustomerResponse) GetCreate_At() string

func (*CustomerResponse) GetCustomer_ID

func (x *CustomerResponse) GetCustomer_ID() int32

func (*CustomerResponse) ProtoMessage

func (*CustomerResponse) ProtoMessage()

func (*CustomerResponse) ProtoReflect

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

func (*CustomerResponse) Reset

func (x *CustomerResponse) Reset()

func (*CustomerResponse) String

func (x *CustomerResponse) String() string

type CustomerServiceClient

type CustomerServiceClient interface {
	CreateCustomer(ctx context.Context, in *Customer, opts ...grpc.CallOption) (*CustomerResponse, error)
}

CustomerServiceClient is the client API for CustomerService 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 CustomerServiceServer

type CustomerServiceServer interface {
	CreateCustomer(context.Context, *Customer) (*CustomerResponse, error)
	// contains filtered or unexported methods
}

CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility

type UnimplementedCustomerServiceServer

type UnimplementedCustomerServiceServer struct {
}

UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCustomerServiceServer) CreateCustomer

type UnsafeCustomerServiceServer

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

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

Jump to

Keyboard shortcuts

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