netxd_grpc_mongo_proto

package
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

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,
		},
		{
			MethodName: "makeTransaction",
			Handler:    _CustomerService_MakeTransaction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "netxd_grpc_mongo_proto/Customer_Protobuff/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_grpc_mongo_proto_Customer_Protobuff_netxd_customer_proto protoreflect.FileDescriptor

Functions

func RegisterCustomerServiceServer

func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)

Types

type CustomerDetails

type CustomerDetails 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     string  `protobuf:"bytes,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
}

create

func (*CustomerDetails) Descriptor deprecated

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

Deprecated: Use CustomerDetails.ProtoReflect.Descriptor instead.

func (*CustomerDetails) GetBalance

func (x *CustomerDetails) GetBalance() float32

func (*CustomerDetails) GetBankId

func (x *CustomerDetails) GetBankId() string

func (*CustomerDetails) GetCreatedAt

func (x *CustomerDetails) GetCreatedAt() string

func (*CustomerDetails) GetCustomerId

func (x *CustomerDetails) GetCustomerId() int32

func (*CustomerDetails) GetFirstName

func (x *CustomerDetails) GetFirstName() string

func (*CustomerDetails) GetIsActive

func (x *CustomerDetails) GetIsActive() bool

func (*CustomerDetails) GetLastName

func (x *CustomerDetails) GetLastName() string

func (*CustomerDetails) GetUpdatedAt

func (x *CustomerDetails) GetUpdatedAt() string

func (*CustomerDetails) ProtoMessage

func (*CustomerDetails) ProtoMessage()

func (*CustomerDetails) ProtoReflect

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

func (*CustomerDetails) Reset

func (x *CustomerDetails) Reset()

func (*CustomerDetails) String

func (x *CustomerDetails) 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 *CustomerDetails, opts ...grpc.CallOption) (*CustomerResponse, error)
	MakeTransaction(ctx context.Context, in *UpdateBalance, opts ...grpc.CallOption) (*UpdateResponse, 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, *CustomerDetails) (*CustomerResponse, error)
	MakeTransaction(context.Context, *UpdateBalance) (*UpdateResponse, 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

func (UnimplementedCustomerServiceServer) MakeTransaction added in v1.0.1

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.

type UpdateBalance added in v1.0.1

type UpdateBalance struct {
	From_CustomerId  int32   `protobuf:"varint,1,opt,name=From_CustomerId,json=FromCustomerId,proto3" json:"From_CustomerId,omitempty"`
	To_CustomerId    int32   `protobuf:"varint,2,opt,name=To_CustomerId,json=ToCustomerId,proto3" json:"To_CustomerId,omitempty"`
	Amount           float32 `protobuf:"fixed32,3,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Transaction_Time string  `protobuf:"bytes,4,opt,name=Transaction_Time,json=TransactionTime,proto3" json:"Transaction_Time,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateBalance) Descriptor deprecated added in v1.0.1

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

Deprecated: Use UpdateBalance.ProtoReflect.Descriptor instead.

func (*UpdateBalance) GetAmount added in v1.0.1

func (x *UpdateBalance) GetAmount() float32

func (*UpdateBalance) GetFrom_CustomerId added in v1.0.1

func (x *UpdateBalance) GetFrom_CustomerId() int32

func (*UpdateBalance) GetTo_CustomerId added in v1.0.1

func (x *UpdateBalance) GetTo_CustomerId() int32

func (*UpdateBalance) GetTransaction_Time added in v1.0.1

func (x *UpdateBalance) GetTransaction_Time() string

func (*UpdateBalance) ProtoMessage added in v1.0.1

func (*UpdateBalance) ProtoMessage()

func (*UpdateBalance) ProtoReflect added in v1.0.1

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

func (*UpdateBalance) Reset added in v1.0.1

func (x *UpdateBalance) Reset()

func (*UpdateBalance) String added in v1.0.1

func (x *UpdateBalance) String() string

type UpdateResponse added in v1.0.1

type UpdateResponse struct {
	From_CustomerId  int32  `protobuf:"varint,1,opt,name=From_CustomerId,json=FromCustomerId,proto3" json:"From_CustomerId,omitempty"`
	To_CustomerId    int32  `protobuf:"varint,2,opt,name=To_CustomerId,json=ToCustomerId,proto3" json:"To_CustomerId,omitempty"`
	Transaction_Time string `protobuf:"bytes,3,opt,name=Transaction_Time,json=TransactionTime,proto3" json:"Transaction_Time,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated added in v1.0.1

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetFrom_CustomerId added in v1.0.2

func (x *UpdateResponse) GetFrom_CustomerId() int32

func (*UpdateResponse) GetTo_CustomerId added in v1.0.2

func (x *UpdateResponse) GetTo_CustomerId() int32

func (*UpdateResponse) GetTransaction_Time added in v1.0.1

func (x *UpdateResponse) GetTransaction_Time() string

func (*UpdateResponse) ProtoMessage added in v1.0.1

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect added in v1.0.1

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

func (*UpdateResponse) Reset added in v1.0.1

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String added in v1.0.1

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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