Documentation ¶
Index ¶
- Variables
- func RegisterPixServiceServer(s grpc.ServiceRegistrar, srv PixServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAccountId() string
- func (x *Account) GetAccountNumber() string
- func (x *Account) GetBankId() string
- func (x *Account) GetBankName() string
- func (x *Account) GetCreatedAt() string
- func (x *Account) GetOwnerName() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type PixKey
- type PixKeyCreatedResult
- func (*PixKeyCreatedResult) Descriptor() ([]byte, []int)deprecated
- func (x *PixKeyCreatedResult) GetError() string
- func (x *PixKeyCreatedResult) GetId() string
- func (x *PixKeyCreatedResult) GetStatus() string
- func (*PixKeyCreatedResult) ProtoMessage()
- func (x *PixKeyCreatedResult) ProtoReflect() protoreflect.Message
- func (x *PixKeyCreatedResult) Reset()
- func (x *PixKeyCreatedResult) String() string
- type PixKeyInfo
- func (*PixKeyInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PixKeyInfo) GetAccount() *Account
- func (x *PixKeyInfo) GetCreatedAt() string
- func (x *PixKeyInfo) GetId() string
- func (x *PixKeyInfo) GetKey() string
- func (x *PixKeyInfo) GetKind() string
- func (*PixKeyInfo) ProtoMessage()
- func (x *PixKeyInfo) ProtoReflect() protoreflect.Message
- func (x *PixKeyInfo) Reset()
- func (x *PixKeyInfo) String() string
- type PixKeyRegistration
- func (*PixKeyRegistration) Descriptor() ([]byte, []int)deprecated
- func (x *PixKeyRegistration) GetAccountId() string
- func (x *PixKeyRegistration) GetKey() string
- func (x *PixKeyRegistration) GetKind() string
- func (*PixKeyRegistration) ProtoMessage()
- func (x *PixKeyRegistration) ProtoReflect() protoreflect.Message
- func (x *PixKeyRegistration) Reset()
- func (x *PixKeyRegistration) String() string
- type PixServiceClient
- type PixServiceServer
- type UnimplementedPixServiceServer
- type UnsafePixServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pixkey_proto protoreflect.FileDescriptor
var PixService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.AdrianeRibeiro.CodePix.PixService", HandlerType: (*PixServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterPixKey", Handler: _PixService_RegisterPixKey_Handler, }, { MethodName: "Find", Handler: _PixService_Find_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pixkey.proto", }
PixService_ServiceDesc is the grpc.ServiceDesc for PixService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPixServiceServer ¶
func RegisterPixServiceServer(s grpc.ServiceRegistrar, srv PixServiceServer)
Types ¶
type Account ¶
type Account struct { AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` AccountNumber string `protobuf:"bytes,2,opt,name=accountNumber,proto3" json:"accountNumber,omitempty"` BankId string `protobuf:"bytes,3,opt,name=bankId,proto3" json:"bankId,omitempty"` BankName string `protobuf:"bytes,4,opt,name=bankName,proto3" json:"bankName,omitempty"` OwnerName string `protobuf:"bytes,5,opt,name=OwnerName,proto3" json:"OwnerName,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAccountId ¶
func (*Account) GetAccountNumber ¶
func (*Account) GetBankName ¶
func (*Account) GetCreatedAt ¶
func (*Account) GetOwnerName ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type PixKey ¶
type PixKey struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*PixKey) Descriptor
deprecated
func (*PixKey) ProtoMessage ¶
func (*PixKey) ProtoMessage()
func (*PixKey) ProtoReflect ¶
func (x *PixKey) ProtoReflect() protoreflect.Message
type PixKeyCreatedResult ¶
type PixKeyCreatedResult struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*PixKeyCreatedResult) Descriptor
deprecated
func (*PixKeyCreatedResult) Descriptor() ([]byte, []int)
Deprecated: Use PixKeyCreatedResult.ProtoReflect.Descriptor instead.
func (*PixKeyCreatedResult) GetError ¶
func (x *PixKeyCreatedResult) GetError() string
func (*PixKeyCreatedResult) GetId ¶
func (x *PixKeyCreatedResult) GetId() string
func (*PixKeyCreatedResult) GetStatus ¶
func (x *PixKeyCreatedResult) GetStatus() string
func (*PixKeyCreatedResult) ProtoMessage ¶
func (*PixKeyCreatedResult) ProtoMessage()
func (*PixKeyCreatedResult) ProtoReflect ¶
func (x *PixKeyCreatedResult) ProtoReflect() protoreflect.Message
func (*PixKeyCreatedResult) Reset ¶
func (x *PixKeyCreatedResult) Reset()
func (*PixKeyCreatedResult) String ¶
func (x *PixKeyCreatedResult) String() string
type PixKeyInfo ¶
type PixKeyInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Account *Account `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` CreatedAt string `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*PixKeyInfo) Descriptor
deprecated
func (*PixKeyInfo) Descriptor() ([]byte, []int)
Deprecated: Use PixKeyInfo.ProtoReflect.Descriptor instead.
func (*PixKeyInfo) GetAccount ¶
func (x *PixKeyInfo) GetAccount() *Account
func (*PixKeyInfo) GetCreatedAt ¶
func (x *PixKeyInfo) GetCreatedAt() string
func (*PixKeyInfo) GetId ¶
func (x *PixKeyInfo) GetId() string
func (*PixKeyInfo) GetKey ¶
func (x *PixKeyInfo) GetKey() string
func (*PixKeyInfo) GetKind ¶
func (x *PixKeyInfo) GetKind() string
func (*PixKeyInfo) ProtoMessage ¶
func (*PixKeyInfo) ProtoMessage()
func (*PixKeyInfo) ProtoReflect ¶
func (x *PixKeyInfo) ProtoReflect() protoreflect.Message
func (*PixKeyInfo) Reset ¶
func (x *PixKeyInfo) Reset()
func (*PixKeyInfo) String ¶
func (x *PixKeyInfo) String() string
type PixKeyRegistration ¶
type PixKeyRegistration struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"` // contains filtered or unexported fields }
func (*PixKeyRegistration) Descriptor
deprecated
func (*PixKeyRegistration) Descriptor() ([]byte, []int)
Deprecated: Use PixKeyRegistration.ProtoReflect.Descriptor instead.
func (*PixKeyRegistration) GetAccountId ¶
func (x *PixKeyRegistration) GetAccountId() string
func (*PixKeyRegistration) GetKey ¶
func (x *PixKeyRegistration) GetKey() string
func (*PixKeyRegistration) GetKind ¶
func (x *PixKeyRegistration) GetKind() string
func (*PixKeyRegistration) ProtoMessage ¶
func (*PixKeyRegistration) ProtoMessage()
func (*PixKeyRegistration) ProtoReflect ¶
func (x *PixKeyRegistration) ProtoReflect() protoreflect.Message
func (*PixKeyRegistration) Reset ¶
func (x *PixKeyRegistration) Reset()
func (*PixKeyRegistration) String ¶
func (x *PixKeyRegistration) String() string
type PixServiceClient ¶
type PixServiceClient interface { RegisterPixKey(ctx context.Context, in *PixKeyRegistration, opts ...grpc.CallOption) (*PixKeyCreatedResult, error) Find(ctx context.Context, in *PixKey, opts ...grpc.CallOption) (*PixKeyInfo, error) }
PixServiceClient is the client API for PixService 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 NewPixServiceClient ¶
func NewPixServiceClient(cc grpc.ClientConnInterface) PixServiceClient
type PixServiceServer ¶
type PixServiceServer interface { RegisterPixKey(context.Context, *PixKeyRegistration) (*PixKeyCreatedResult, error) Find(context.Context, *PixKey) (*PixKeyInfo, error) // contains filtered or unexported methods }
PixServiceServer is the server API for PixService service. All implementations must embed UnimplementedPixServiceServer for forward compatibility
type UnimplementedPixServiceServer ¶
type UnimplementedPixServiceServer struct { }
UnimplementedPixServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPixServiceServer) Find ¶
func (UnimplementedPixServiceServer) Find(context.Context, *PixKey) (*PixKeyInfo, error)
func (UnimplementedPixServiceServer) RegisterPixKey ¶
func (UnimplementedPixServiceServer) RegisterPixKey(context.Context, *PixKeyRegistration) (*PixKeyCreatedResult, error)
type UnsafePixServiceServer ¶
type UnsafePixServiceServer interface {
// contains filtered or unexported methods
}
UnsafePixServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PixServiceServer will result in compilation errors.