pb

package
v0.0.0-...-0091320 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetBank

func (x *Account) GetBank() *Bank

func (*Account) GetCreatedAt

func (x *Account) GetCreatedAt() string

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetNumber

func (x *Account) GetNumber() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Bank.ProtoReflect.Descriptor instead.

func (*Bank) GetCode

func (x *Bank) GetCode() string

func (*Bank) GetId

func (x *Bank) GetId() string

func (*Bank) GetName

func (x *Bank) GetName() string

func (*Bank) ProtoMessage

func (*Bank) ProtoMessage()

func (*Bank) ProtoReflect

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

func (*Bank) Reset

func (x *Bank) Reset()

func (*Bank) String

func (x *Bank) 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 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.

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

Deprecated: Use Pixkey.ProtoReflect.Descriptor instead.

func (*Pixkey) GetAccount

func (x *Pixkey) GetAccount() *Account

func (*Pixkey) GetId

func (x *Pixkey) GetId() string

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 UnimplementedPixKeyServiceServer

type UnimplementedPixKeyServiceServer struct {
}

UnimplementedPixKeyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPixKeyServiceServer) Find

func (UnimplementedPixKeyServiceServer) RegisterPixKey

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.

Jump to

Keyboard shortcuts

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