pb

package
v0.0.0-...-fd261d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pixkey_proto protoreflect.FileDescriptor
View Source
var PixService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.Eduardo0725.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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccountId

func (x *Account) GetAccountId() string

func (*Account) GetAccountNumber

func (x *Account) GetAccountNumber() string

func (*Account) GetBankId

func (x *Account) GetBankId() string

func (*Account) GetBankName

func (x *Account) GetBankName() string

func (*Account) GetCreatedAt

func (x *Account) GetCreatedAt() string

func (*Account) GetOwnerName

func (x *Account) GetOwnerName() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PixKey.ProtoReflect.Descriptor instead.

func (*PixKey) GetKey

func (x *PixKey) GetKey() string

func (*PixKey) GetKind

func (x *PixKey) GetKind() string

func (*PixKey) ProtoMessage

func (*PixKey) ProtoMessage()

func (*PixKey) ProtoReflect

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

func (*PixKey) Reset

func (x *PixKey) Reset()

func (*PixKey) String

func (x *PixKey) String() string

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) RegisterPixKey

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.

Jump to

Keyboard shortcuts

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