PROJECT_1

package module
v1.0.4 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

README

netxd-customer-proto

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: "netxd_customer/netxd_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_netxd_customer_netxd_customer_proto protoreflect.FileDescriptor

Functions

func RegisterCustomerServiceServer

func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)

Types

type Customer

type Customer struct {
	CustomerId int32   `protobuf:"varint,1,opt,name=CustomerId,proto3" json:"CustomerId,omitempty"`
	FirstName  string  `protobuf:"bytes,2,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
	LastName   string  `protobuf:"bytes,3,opt,name=LastName,proto3" json:"LastName,omitempty"`
	BankId     int32   `protobuf:"varint,4,opt,name=BankId,proto3" json:"BankId,omitempty"`
	Balance    float32 `protobuf:"fixed32,5,opt,name=Balance,proto3" json:"Balance,omitempty"`
	CreatedAt  string  `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	UpdatedAt  string  `protobuf:"bytes,7,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	IsActive   bool    `protobuf:"varint,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() float32

func (*Customer) GetBankId

func (x *Customer) GetBankId() int32

func (*Customer) GetCreatedAt

func (x *Customer) GetCreatedAt() string

func (*Customer) GetCustomerId

func (x *Customer) GetCustomerId() int32

func (*Customer) GetFirstName

func (x *Customer) GetFirstName() string

func (*Customer) GetIsActive

func (x *Customer) GetIsActive() bool

func (*Customer) GetLastName

func (x *Customer) GetLastName() string

func (*Customer) GetUpdatedAt

func (x *Customer) GetUpdatedAt() 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 {
	CustomerId int32  `protobuf:"varint,1,opt,name=CustomerId,proto3" json:"CustomerId,omitempty"`
	CreatedAt  string `protobuf:"bytes,2,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomerResponse) Descriptor deprecated

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

Deprecated: Use CustomerResponse.ProtoReflect.Descriptor instead.

func (*CustomerResponse) GetCreatedAt

func (x *CustomerResponse) GetCreatedAt() string

func (*CustomerResponse) GetCustomerId

func (x *CustomerResponse) GetCustomerId() 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