Documentation ¶
Index ¶
- Variables
- func RegisterPixKeyServiceServer(s grpc.ServiceRegistrar, srv PixKeyServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetBank() *Bank
- func (x *Account) GetCreatedAt() string
- func (x *Account) GetId() string
- func (x *Account) GetNumber() 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 Bank
- 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 PixKeyFind
- 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 PixKeyServiceClient
- type PixKeyServiceServer
- type Pixkey
- func (*Pixkey) Descriptor() ([]byte, []int)deprecated
- func (x *Pixkey) GetAccount() *Account
- func (x *Pixkey) GetId() string
- func (x *Pixkey) GetKey() string
- func (x *Pixkey) GetKind() string
- func (*Pixkey) ProtoMessage()
- func (x *Pixkey) ProtoReflect() protoreflect.Message
- func (x *Pixkey) Reset()
- func (x *Pixkey) String() string
- type UnimplementedPixKeyServiceServer
- type UnsafePixKeyServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pixkey_proto protoreflect.FileDescriptor
var PixKeyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.ajvideira.codepix.PixKeyService", HandlerType: (*PixKeyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterPixKey", Handler: _PixKeyService_RegisterPixKey_Handler, }, { MethodName: "Find", Handler: _PixKeyService_Find_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pixkey.proto", }
PixKeyService_ServiceDesc is the grpc.ServiceDesc for PixKeyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPixKeyServiceServer ¶
func RegisterPixKeyServiceServer(s grpc.ServiceRegistrar, srv PixKeyServiceServer)
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"` OwnerName string `protobuf:"bytes,3,opt,name=ownerName,proto3" json:"ownerName,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` Bank *Bank `protobuf:"bytes,5,opt,name=bank,proto3" json:"bank,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetCreatedAt ¶
func (*Account) GetOwnerName ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type Bank ¶
type Bank struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Bank) Descriptor
deprecated
func (*Bank) ProtoMessage ¶
func (*Bank) ProtoMessage()
func (*Bank) ProtoReflect ¶
func (x *Bank) 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 PixKeyFind ¶
type PixKeyFind 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 (*PixKeyFind) Descriptor
deprecated
func (*PixKeyFind) Descriptor() ([]byte, []int)
Deprecated: Use PixKeyFind.ProtoReflect.Descriptor instead.
func (*PixKeyFind) GetKey ¶
func (x *PixKeyFind) GetKey() string
func (*PixKeyFind) GetKind ¶
func (x *PixKeyFind) GetKind() string
func (*PixKeyFind) ProtoMessage ¶
func (*PixKeyFind) ProtoMessage()
func (*PixKeyFind) ProtoReflect ¶
func (x *PixKeyFind) ProtoReflect() protoreflect.Message
func (*PixKeyFind) Reset ¶
func (x *PixKeyFind) Reset()
func (*PixKeyFind) String ¶
func (x *PixKeyFind) 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 PixKeyServiceClient ¶
type PixKeyServiceClient interface { RegisterPixKey(ctx context.Context, in *PixKeyRegistration, opts ...grpc.CallOption) (*PixKeyCreatedResult, error) Find(ctx context.Context, in *PixKeyFind, opts ...grpc.CallOption) (*Pixkey, error) }
PixKeyServiceClient is the client API for PixKeyService 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 NewPixKeyServiceClient ¶
func NewPixKeyServiceClient(cc grpc.ClientConnInterface) PixKeyServiceClient
type PixKeyServiceServer ¶
type PixKeyServiceServer interface { RegisterPixKey(context.Context, *PixKeyRegistration) (*PixKeyCreatedResult, error) Find(context.Context, *PixKeyFind) (*Pixkey, error) // contains filtered or unexported methods }
PixKeyServiceServer is the server API for PixKeyService service. All implementations must embed UnimplementedPixKeyServiceServer for forward compatibility
type Pixkey ¶
type Pixkey 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"` // contains filtered or unexported fields }
func (*Pixkey) Descriptor
deprecated
func (*Pixkey) GetAccount ¶
func (*Pixkey) ProtoMessage ¶
func (*Pixkey) ProtoMessage()
func (*Pixkey) ProtoReflect ¶
func (x *Pixkey) ProtoReflect() protoreflect.Message
type UnimplementedPixKeyServiceServer ¶
type UnimplementedPixKeyServiceServer struct { }
UnimplementedPixKeyServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPixKeyServiceServer) Find ¶
func (UnimplementedPixKeyServiceServer) Find(context.Context, *PixKeyFind) (*Pixkey, error)
func (UnimplementedPixKeyServiceServer) RegisterPixKey ¶
func (UnimplementedPixKeyServiceServer) RegisterPixKey(context.Context, *PixKeyRegistration) (*PixKeyCreatedResult, error)
type UnsafePixKeyServiceServer ¶
type UnsafePixKeyServiceServer interface {
// contains filtered or unexported methods
}
UnsafePixKeyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PixKeyServiceServer will result in compilation errors.