Documentation ¶
Overview ¶
Package proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCreditCardServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCreditCardServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CreditCardServiceClient) error
- func RegisterCreditCardServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCreditCardServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CreditCardServiceServer) error
- func RegisterCreditCardServiceServer(s grpc.ServiceRegistrar, srv CreditCardServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AnyPayload
- type CreditCard
- func (*CreditCard) Descriptor() ([]byte, []int)deprecated
- func (x *CreditCard) GetAddress() string
- func (x *CreditCard) GetCity() string
- func (x *CreditCard) GetCountry() string
- func (x *CreditCard) GetCreatedAt() *timestamppb.Timestamp
- func (x *CreditCard) GetCvv() string
- func (x *CreditCard) GetDeletedAt() *timestamppb.Timestamp
- func (x *CreditCard) GetEmail() string
- func (x *CreditCard) GetId() uint32
- func (x *CreditCard) GetName() string
- func (x *CreditCard) GetPhoneNumber() string
- func (x *CreditCard) GetUpdatedAt() *timestamppb.Timestamp
- func (x *CreditCard) GetZip() string
- func (*CreditCard) ProtoMessage()
- func (x *CreditCard) ProtoReflect() protoreflect.Message
- func (x *CreditCard) Reset()
- func (x *CreditCard) String() string
- type CreditCardApplication
- func (*CreditCardApplication) Descriptor() ([]byte, []int)deprecated
- func (x *CreditCardApplication) GetBranch() string
- func (x *CreditCardApplication) GetCardBranding() string
- func (x *CreditCardApplication) GetCardName() string
- func (x *CreditCardApplication) GetCardType() string
- func (x *CreditCardApplication) GetCity() string
- func (x *CreditCardApplication) GetCountry() string
- func (x *CreditCardApplication) GetCreatedAt() *timestamppb.Timestamp
- func (x *CreditCardApplication) GetDateOfBirth() *timestamppb.Timestamp
- func (x *CreditCardApplication) GetDeletedAt() *timestamppb.Timestamp
- func (x *CreditCardApplication) GetEmploymentType() string
- func (x *CreditCardApplication) GetFirstName() string
- func (x *CreditCardApplication) GetId() uint32
- func (x *CreditCardApplication) GetLastName() string
- func (x *CreditCardApplication) GetMonthlyIncome() float32
- func (x *CreditCardApplication) GetMonthlyPayment() float32
- func (x *CreditCardApplication) GetOccupation() string
- func (x *CreditCardApplication) GetOwnership() string
- func (x *CreditCardApplication) GetPhoneNumber() string
- func (x *CreditCardApplication) GetSocialSecurityNumber() string
- func (x *CreditCardApplication) GetState() string
- func (x *CreditCardApplication) GetStreetAddress() string
- func (x *CreditCardApplication) GetUpdatedAt() *timestamppb.Timestamp
- func (x *CreditCardApplication) GetYearsAtAddress() int32
- func (x *CreditCardApplication) GetYearsEmployed() int32
- func (x *CreditCardApplication) GetZip() string
- func (*CreditCardApplication) ProtoMessage()
- func (x *CreditCardApplication) ProtoReflect() protoreflect.Message
- func (x *CreditCardApplication) Reset()
- func (x *CreditCardApplication) String() string
- type CreditCardServiceClient
- type CreditCardServiceServer
- type ListCreditCards
- type ListUser
- type Message
- type Payload
- type Payload_Attributes
- func (*Payload_Attributes) Descriptor() ([]byte, []int)deprecated
- func (x *Payload_Attributes) GetValues() map[string]string
- func (*Payload_Attributes) ProtoMessage()
- func (x *Payload_Attributes) ProtoReflect() protoreflect.Message
- func (x *Payload_Attributes) Reset()
- func (x *Payload_Attributes) String() string
- type Result
- type UnimplementedCreditCardServiceServer
- func (UnimplementedCreditCardServiceServer) CreateCreditCard(context.Context, *CreditCard) (*CreditCard, error)
- func (UnimplementedCreditCardServiceServer) CreateCreditCardApplication(context.Context, *CreditCardApplication) (*CreditCardApplication, error)
- func (UnimplementedCreditCardServiceServer) CreditCards(context.Context, *CreditCard) (*ListCreditCards, error)
- func (UnimplementedCreditCardServiceServer) GetCreditCardApplicationByName(context.Context, *CreditCardApplication) (*CreditCardApplication, error)
- func (UnimplementedCreditCardServiceServer) GetCreditCardByUserName(context.Context, *CreditCard) (*CreditCard, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *User) (*User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *User) (*Message, error)
- func (UnimplementedUserServiceServer) GetUserByID(context.Context, *User) (*User, error)
- func (UnimplementedUserServiceServer) GetUserByName(context.Context, *User) (*User, error)
- func (UnimplementedUserServiceServer) ListUsers(context.Context, *User) (*ListUser, error)
- func (UnimplementedUserServiceServer) SayHello(context.Context, *User) (*Message, error)
- func (UnimplementedUserServiceServer) UpdateUserByID(context.Context, *User) (*User, error)
- func (UnimplementedUserServiceServer) UpdateUserByName(context.Context, *User) (*User, error)
- type UnsafeCreditCardServiceServer
- type UnsafeUserServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetId() uint32
- func (x *User) GetName() string
- func (x *User) GetPhoneNumber() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
const ( UserService_CreateUser_FullMethodName = "/user.UserService/CreateUser" UserService_UpdateUserByName_FullMethodName = "/user.UserService/UpdateUserByName" UserService_UpdateUserByID_FullMethodName = "/user.UserService/UpdateUserByID" UserService_DeleteUser_FullMethodName = "/user.UserService/DeleteUser" UserService_ListUsers_FullMethodName = "/user.UserService/ListUsers" UserService_GetUserByName_FullMethodName = "/user.UserService/GetUserByName" UserService_GetUserByID_FullMethodName = "/user.UserService/GetUserByID" UserService_SayHello_FullMethodName = "/user.UserService/SayHello" )
const ( CreditCardService_CreditCards_FullMethodName = "/user.CreditCardService/CreditCards" CreditCardService_GetCreditCardByUserName_FullMethodName = "/user.CreditCardService/GetCreditCardByUserName" CreditCardService_CreateCreditCardApplication_FullMethodName = "/user.CreditCardService/CreateCreditCardApplication" CreditCardService_GetCreditCardApplicationByName_FullMethodName = "/user.CreditCardService/GetCreditCardApplicationByName" CreditCardService_CreateCreditCard_FullMethodName = "/user.CreditCardService/CreateCreditCard" )
Variables ¶
var CreditCardService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.CreditCardService", HandlerType: (*CreditCardServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreditCards", Handler: _CreditCardService_CreditCards_Handler, }, { MethodName: "GetCreditCardByUserName", Handler: _CreditCardService_GetCreditCardByUserName_Handler, }, { MethodName: "CreateCreditCardApplication", Handler: _CreditCardService_CreateCreditCardApplication_Handler, }, { MethodName: "GetCreditCardApplicationByName", Handler: _CreditCardService_GetCreditCardApplicationByName_Handler, }, { MethodName: "CreateCreditCard", Handler: _CreditCardService_CreateCreditCard_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user.proto", }
CreditCardService_ServiceDesc is the grpc.ServiceDesc for CreditCardService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "UpdateUserByName", Handler: _UserService_UpdateUserByName_Handler, }, { MethodName: "UpdateUserByID", Handler: _UserService_UpdateUserByID_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "ListUsers", Handler: _UserService_ListUsers_Handler, }, { MethodName: "GetUserByName", Handler: _UserService_GetUserByName_Handler, }, { MethodName: "GetUserByID", Handler: _UserService_GetUserByID_Handler, }, { MethodName: "SayHello", Handler: _UserService_SayHello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCreditCardServiceHandler ¶
func RegisterCreditCardServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCreditCardServiceHandler registers the http handlers for service CreditCardService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCreditCardServiceHandlerClient ¶
func RegisterCreditCardServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CreditCardServiceClient) error
RegisterCreditCardServiceHandlerClient registers the http handlers for service CreditCardService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CreditCardServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CreditCardServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CreditCardServiceClient" to call the correct interceptors.
func RegisterCreditCardServiceHandlerFromEndpoint ¶
func RegisterCreditCardServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCreditCardServiceHandlerFromEndpoint is same as RegisterCreditCardServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCreditCardServiceHandlerServer ¶
func RegisterCreditCardServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CreditCardServiceServer) error
RegisterCreditCardServiceHandlerServer registers the http handlers for service CreditCardService to "mux". UnaryRPC :call CreditCardServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCreditCardServiceHandlerFromEndpoint instead.
func RegisterCreditCardServiceServer ¶
func RegisterCreditCardServiceServer(s grpc.ServiceRegistrar, srv CreditCardServiceServer)
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AnyPayload ¶
type AnyPayload struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*AnyPayload) Descriptor
deprecated
func (*AnyPayload) Descriptor() ([]byte, []int)
Deprecated: Use AnyPayload.ProtoReflect.Descriptor instead.
func (*AnyPayload) GetBody ¶
func (x *AnyPayload) GetBody() string
func (*AnyPayload) ProtoMessage ¶
func (*AnyPayload) ProtoMessage()
func (*AnyPayload) ProtoReflect ¶
func (x *AnyPayload) ProtoReflect() protoreflect.Message
func (*AnyPayload) Reset ¶
func (x *AnyPayload) Reset()
func (*AnyPayload) String ¶
func (x *AnyPayload) String() string
type CreditCard ¶
type CreditCard struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,4,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"` City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` Zip string `protobuf:"bytes,8,opt,name=zip,proto3" json:"zip,omitempty"` Cvv string `protobuf:"bytes,9,opt,name=cvv,proto3" json:"cvv,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*CreditCard) Descriptor
deprecated
func (*CreditCard) Descriptor() ([]byte, []int)
Deprecated: Use CreditCard.ProtoReflect.Descriptor instead.
func (*CreditCard) GetAddress ¶
func (x *CreditCard) GetAddress() string
func (*CreditCard) GetCity ¶
func (x *CreditCard) GetCity() string
func (*CreditCard) GetCountry ¶
func (x *CreditCard) GetCountry() string
func (*CreditCard) GetCreatedAt ¶
func (x *CreditCard) GetCreatedAt() *timestamppb.Timestamp
func (*CreditCard) GetCvv ¶
func (x *CreditCard) GetCvv() string
func (*CreditCard) GetDeletedAt ¶
func (x *CreditCard) GetDeletedAt() *timestamppb.Timestamp
func (*CreditCard) GetEmail ¶
func (x *CreditCard) GetEmail() string
func (*CreditCard) GetId ¶
func (x *CreditCard) GetId() uint32
func (*CreditCard) GetName ¶
func (x *CreditCard) GetName() string
func (*CreditCard) GetPhoneNumber ¶
func (x *CreditCard) GetPhoneNumber() string
func (*CreditCard) GetUpdatedAt ¶
func (x *CreditCard) GetUpdatedAt() *timestamppb.Timestamp
func (*CreditCard) GetZip ¶
func (x *CreditCard) GetZip() string
func (*CreditCard) ProtoMessage ¶
func (*CreditCard) ProtoMessage()
func (*CreditCard) ProtoReflect ¶
func (x *CreditCard) ProtoReflect() protoreflect.Message
func (*CreditCard) Reset ¶
func (x *CreditCard) Reset()
func (*CreditCard) String ¶
func (x *CreditCard) String() string
type CreditCardApplication ¶
type CreditCardApplication struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` DateOfBirth *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=dateOfBirth,proto3" json:"dateOfBirth,omitempty"` PhoneNumber string `protobuf:"bytes,5,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` SocialSecurityNumber string `protobuf:"bytes,6,opt,name=socialSecurityNumber,proto3" json:"socialSecurityNumber,omitempty"` EmploymentType string `protobuf:"bytes,7,opt,name=employmentType,proto3" json:"employmentType,omitempty"` Occupation string `protobuf:"bytes,8,opt,name=occupation,proto3" json:"occupation,omitempty"` MonthlyIncome float32 `protobuf:"fixed32,9,opt,name=monthlyIncome,proto3" json:"monthlyIncome,omitempty"` YearsEmployed int32 `protobuf:"varint,10,opt,name=yearsEmployed,proto3" json:"yearsEmployed,omitempty"` StreetAddress string `protobuf:"bytes,11,opt,name=streetAddress,proto3" json:"streetAddress,omitempty"` YearsAtAddress int32 `protobuf:"varint,12,opt,name=yearsAtAddress,proto3" json:"yearsAtAddress,omitempty"` City string `protobuf:"bytes,13,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,14,opt,name=state,proto3" json:"state,omitempty"` Zip string `protobuf:"bytes,15,opt,name=zip,proto3" json:"zip,omitempty"` Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"` Ownership string `protobuf:"bytes,17,opt,name=ownership,proto3" json:"ownership,omitempty"` MonthlyPayment float32 `protobuf:"fixed32,18,opt,name=monthlyPayment,proto3" json:"monthlyPayment,omitempty"` CardName string `protobuf:"bytes,19,opt,name=cardName,proto3" json:"cardName,omitempty"` CardType string `protobuf:"bytes,20,opt,name=cardType,proto3" json:"cardType,omitempty"` Branch string `protobuf:"bytes,21,opt,name=branch,proto3" json:"branch,omitempty"` CardBranding string `protobuf:"bytes,22,opt,name=cardBranding,proto3" json:"cardBranding,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,25,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*CreditCardApplication) Descriptor
deprecated
func (*CreditCardApplication) Descriptor() ([]byte, []int)
Deprecated: Use CreditCardApplication.ProtoReflect.Descriptor instead.
func (*CreditCardApplication) GetBranch ¶
func (x *CreditCardApplication) GetBranch() string
func (*CreditCardApplication) GetCardBranding ¶
func (x *CreditCardApplication) GetCardBranding() string
func (*CreditCardApplication) GetCardName ¶
func (x *CreditCardApplication) GetCardName() string
func (*CreditCardApplication) GetCardType ¶
func (x *CreditCardApplication) GetCardType() string
func (*CreditCardApplication) GetCity ¶
func (x *CreditCardApplication) GetCity() string
func (*CreditCardApplication) GetCountry ¶
func (x *CreditCardApplication) GetCountry() string
func (*CreditCardApplication) GetCreatedAt ¶
func (x *CreditCardApplication) GetCreatedAt() *timestamppb.Timestamp
func (*CreditCardApplication) GetDateOfBirth ¶
func (x *CreditCardApplication) GetDateOfBirth() *timestamppb.Timestamp
func (*CreditCardApplication) GetDeletedAt ¶
func (x *CreditCardApplication) GetDeletedAt() *timestamppb.Timestamp
func (*CreditCardApplication) GetEmploymentType ¶
func (x *CreditCardApplication) GetEmploymentType() string
func (*CreditCardApplication) GetFirstName ¶
func (x *CreditCardApplication) GetFirstName() string
func (*CreditCardApplication) GetId ¶
func (x *CreditCardApplication) GetId() uint32
func (*CreditCardApplication) GetLastName ¶
func (x *CreditCardApplication) GetLastName() string
func (*CreditCardApplication) GetMonthlyIncome ¶
func (x *CreditCardApplication) GetMonthlyIncome() float32
func (*CreditCardApplication) GetMonthlyPayment ¶
func (x *CreditCardApplication) GetMonthlyPayment() float32
func (*CreditCardApplication) GetOccupation ¶
func (x *CreditCardApplication) GetOccupation() string
func (*CreditCardApplication) GetOwnership ¶
func (x *CreditCardApplication) GetOwnership() string
func (*CreditCardApplication) GetPhoneNumber ¶
func (x *CreditCardApplication) GetPhoneNumber() string
func (*CreditCardApplication) GetSocialSecurityNumber ¶
func (x *CreditCardApplication) GetSocialSecurityNumber() string
func (*CreditCardApplication) GetState ¶
func (x *CreditCardApplication) GetState() string
func (*CreditCardApplication) GetStreetAddress ¶
func (x *CreditCardApplication) GetStreetAddress() string
func (*CreditCardApplication) GetUpdatedAt ¶
func (x *CreditCardApplication) GetUpdatedAt() *timestamppb.Timestamp
func (*CreditCardApplication) GetYearsAtAddress ¶
func (x *CreditCardApplication) GetYearsAtAddress() int32
func (*CreditCardApplication) GetYearsEmployed ¶
func (x *CreditCardApplication) GetYearsEmployed() int32
func (*CreditCardApplication) GetZip ¶
func (x *CreditCardApplication) GetZip() string
func (*CreditCardApplication) ProtoMessage ¶
func (*CreditCardApplication) ProtoMessage()
func (*CreditCardApplication) ProtoReflect ¶
func (x *CreditCardApplication) ProtoReflect() protoreflect.Message
func (*CreditCardApplication) Reset ¶
func (x *CreditCardApplication) Reset()
func (*CreditCardApplication) String ¶
func (x *CreditCardApplication) String() string
type CreditCardServiceClient ¶
type CreditCardServiceClient interface { CreditCards(ctx context.Context, in *CreditCard, opts ...grpc.CallOption) (*ListCreditCards, error) GetCreditCardByUserName(ctx context.Context, in *CreditCard, opts ...grpc.CallOption) (*CreditCard, error) CreateCreditCardApplication(ctx context.Context, in *CreditCardApplication, opts ...grpc.CallOption) (*CreditCardApplication, error) GetCreditCardApplicationByName(ctx context.Context, in *CreditCardApplication, opts ...grpc.CallOption) (*CreditCardApplication, error) CreateCreditCard(ctx context.Context, in *CreditCard, opts ...grpc.CallOption) (*CreditCard, error) }
CreditCardServiceClient is the client API for CreditCardService 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 NewCreditCardServiceClient ¶
func NewCreditCardServiceClient(cc grpc.ClientConnInterface) CreditCardServiceClient
type CreditCardServiceServer ¶
type CreditCardServiceServer interface { CreditCards(context.Context, *CreditCard) (*ListCreditCards, error) GetCreditCardByUserName(context.Context, *CreditCard) (*CreditCard, error) CreateCreditCardApplication(context.Context, *CreditCardApplication) (*CreditCardApplication, error) GetCreditCardApplicationByName(context.Context, *CreditCardApplication) (*CreditCardApplication, error) CreateCreditCard(context.Context, *CreditCard) (*CreditCard, error) // contains filtered or unexported methods }
CreditCardServiceServer is the server API for CreditCardService service. All implementations must embed UnimplementedCreditCardServiceServer for forward compatibility
type ListCreditCards ¶
type ListCreditCards struct { CreditCards []*CreditCard `protobuf:"bytes,1,rep,name=credit_cards,json=creditCards,proto3" json:"credit_cards,omitempty"` // contains filtered or unexported fields }
func (*ListCreditCards) Descriptor
deprecated
func (*ListCreditCards) Descriptor() ([]byte, []int)
Deprecated: Use ListCreditCards.ProtoReflect.Descriptor instead.
func (*ListCreditCards) GetCreditCards ¶
func (x *ListCreditCards) GetCreditCards() []*CreditCard
func (*ListCreditCards) ProtoMessage ¶
func (*ListCreditCards) ProtoMessage()
func (*ListCreditCards) ProtoReflect ¶
func (x *ListCreditCards) ProtoReflect() protoreflect.Message
func (*ListCreditCards) Reset ¶
func (x *ListCreditCards) Reset()
func (*ListCreditCards) String ¶
func (x *ListCreditCards) String() string
type ListUser ¶
type ListUser struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*ListUser) Descriptor
deprecated
func (*ListUser) ProtoMessage ¶
func (*ListUser) ProtoMessage()
func (*ListUser) ProtoReflect ¶
func (x *ListUser) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Payload ¶
type Payload struct { Attributes []*Payload_Attributes `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*Payload) Descriptor
deprecated
func (*Payload) GetAttributes ¶
func (x *Payload) GetAttributes() []*Payload_Attributes
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
type Payload_Attributes ¶
type Payload_Attributes struct { Values map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Payload_Attributes) Descriptor
deprecated
func (*Payload_Attributes) Descriptor() ([]byte, []int)
Deprecated: Use Payload_Attributes.ProtoReflect.Descriptor instead.
func (*Payload_Attributes) GetValues ¶
func (x *Payload_Attributes) GetValues() map[string]string
func (*Payload_Attributes) ProtoMessage ¶
func (*Payload_Attributes) ProtoMessage()
func (*Payload_Attributes) ProtoReflect ¶
func (x *Payload_Attributes) ProtoReflect() protoreflect.Message
func (*Payload_Attributes) Reset ¶
func (x *Payload_Attributes) Reset()
func (*Payload_Attributes) String ¶
func (x *Payload_Attributes) String() string
type Result ¶
type Result struct { Result map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type UnimplementedCreditCardServiceServer ¶
type UnimplementedCreditCardServiceServer struct { }
UnimplementedCreditCardServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCreditCardServiceServer) CreateCreditCard ¶
func (UnimplementedCreditCardServiceServer) CreateCreditCard(context.Context, *CreditCard) (*CreditCard, error)
func (UnimplementedCreditCardServiceServer) CreateCreditCardApplication ¶
func (UnimplementedCreditCardServiceServer) CreateCreditCardApplication(context.Context, *CreditCardApplication) (*CreditCardApplication, error)
func (UnimplementedCreditCardServiceServer) CreditCards ¶
func (UnimplementedCreditCardServiceServer) CreditCards(context.Context, *CreditCard) (*ListCreditCards, error)
func (UnimplementedCreditCardServiceServer) GetCreditCardApplicationByName ¶
func (UnimplementedCreditCardServiceServer) GetCreditCardApplicationByName(context.Context, *CreditCardApplication) (*CreditCardApplication, error)
func (UnimplementedCreditCardServiceServer) GetCreditCardByUserName ¶
func (UnimplementedCreditCardServiceServer) GetCreditCardByUserName(context.Context, *CreditCard) (*CreditCard, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) GetUserByID ¶
func (UnimplementedUserServiceServer) GetUserByName ¶
func (UnimplementedUserServiceServer) UpdateUserByID ¶
func (UnimplementedUserServiceServer) UpdateUserByName ¶
type UnsafeCreditCardServiceServer ¶
type UnsafeCreditCardServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCreditCardServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CreditCardServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type User ¶
type User struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,4,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetPhoneNumber ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) UpdateUserByName(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) UpdateUserByID(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) DeleteUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*Message, error) ListUsers(ctx context.Context, in *User, opts ...grpc.CallOption) (*ListUser, error) GetUserByName(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) GetUserByID(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) SayHello(ctx context.Context, in *User, opts ...grpc.CallOption) (*Message, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { CreateUser(context.Context, *User) (*User, error) UpdateUserByName(context.Context, *User) (*User, error) UpdateUserByID(context.Context, *User) (*User, error) DeleteUser(context.Context, *User) (*Message, error) ListUsers(context.Context, *User) (*ListUser, error) GetUserByName(context.Context, *User) (*User, error) GetUserByID(context.Context, *User) (*User, error) SayHello(context.Context, *User) (*Message, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility