grpc

package
v0.0.0-...-6a764d1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountService_GetAccountByID_FullMethodName     = "/grpc.AccountService/GetAccountByID"
	AccountService_GetAccountByUserID_FullMethodName = "/grpc.AccountService/GetAccountByUserID"
	AccountService_CreateAccount_FullMethodName      = "/grpc.AccountService/CreateAccount"
)

Variables

View Source
var AccountService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.AccountService",
	HandlerType: (*AccountServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAccountByID",
			Handler:    _AccountService_GetAccountByID_Handler,
		},
		{
			MethodName: "GetAccountByUserID",
			Handler:    _AccountService_GetAccountByUserID_Handler,
		},
		{
			MethodName: "CreateAccount",
			Handler:    _AccountService_CreateAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/grpc/account.proto",
}

AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_internal_grpc_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)

Types

type AccountServiceClient

type AccountServiceClient interface {
	GetAccountByID(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
	GetAccountByUserID(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
	CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error)
}

AccountServiceClient is the client API for AccountService 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 AccountServiceServer

type AccountServiceServer interface {
	GetAccountByID(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
	GetAccountByUserID(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
	CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
	// contains filtered or unexported methods
}

AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility.

type CreateAccountRequest

type CreateAccountRequest struct {
	UserId      string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Currency    string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
	AccountType string `protobuf:"bytes,3,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountRequest) Descriptor deprecated

func (*CreateAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetAccountType

func (x *CreateAccountRequest) GetAccountType() string

func (*CreateAccountRequest) GetCurrency

func (x *CreateAccountRequest) GetCurrency() string

func (*CreateAccountRequest) GetUserId

func (x *CreateAccountRequest) GetUserId() string

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect

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

func (*CreateAccountRequest) Reset

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String

func (x *CreateAccountRequest) String() string

type CreateAccountResponse

type CreateAccountResponse struct {
	CreatedAt     string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	LastActivity  string `protobuf:"bytes,3,opt,name=last_activity,json=lastActivity,proto3" json:"last_activity,omitempty"`
	Currency      string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"`
	AccountNumber string `protobuf:"bytes,5,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	Balance       string `protobuf:"bytes,6,opt,name=balance,proto3" json:"balance,omitempty"`
	AccountType   string `protobuf:"bytes,7,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
	Status        string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	Id            string `protobuf:"bytes,9,opt,name=id,proto3" json:"id,omitempty"`
	UserId        string `protobuf:"bytes,10,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountResponse) Descriptor deprecated

func (*CreateAccountResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountResponse) GetAccountNumber

func (x *CreateAccountResponse) GetAccountNumber() string

func (*CreateAccountResponse) GetAccountType

func (x *CreateAccountResponse) GetAccountType() string

func (*CreateAccountResponse) GetBalance

func (x *CreateAccountResponse) GetBalance() string

func (*CreateAccountResponse) GetCreatedAt

func (x *CreateAccountResponse) GetCreatedAt() string

func (*CreateAccountResponse) GetCurrency

func (x *CreateAccountResponse) GetCurrency() string

func (*CreateAccountResponse) GetId

func (x *CreateAccountResponse) GetId() string

func (*CreateAccountResponse) GetLastActivity

func (x *CreateAccountResponse) GetLastActivity() string

func (*CreateAccountResponse) GetStatus

func (x *CreateAccountResponse) GetStatus() string

func (*CreateAccountResponse) GetUpdatedAt

func (x *CreateAccountResponse) GetUpdatedAt() string

func (*CreateAccountResponse) GetUserId

func (x *CreateAccountResponse) GetUserId() string

func (*CreateAccountResponse) ProtoMessage

func (*CreateAccountResponse) ProtoMessage()

func (*CreateAccountResponse) ProtoReflect

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

func (*CreateAccountResponse) Reset

func (x *CreateAccountResponse) Reset()

func (*CreateAccountResponse) String

func (x *CreateAccountResponse) String() string

type GetAccountRequest

type GetAccountRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountRequest) Descriptor deprecated

func (*GetAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetId

func (x *GetAccountRequest) GetId() string

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect

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

func (*GetAccountRequest) Reset

func (x *GetAccountRequest) Reset()

func (*GetAccountRequest) String

func (x *GetAccountRequest) String() string

type GetAccountResponse

type GetAccountResponse struct {
	CreatedAt     string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     string `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	LastActivity  string `protobuf:"bytes,3,opt,name=last_activity,json=lastActivity,proto3" json:"last_activity,omitempty"`
	Currency      string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"`
	AccountNumber string `protobuf:"bytes,5,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	Balance       string `protobuf:"bytes,6,opt,name=balance,proto3" json:"balance,omitempty"`
	AccountType   string `protobuf:"bytes,7,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
	Status        string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	Id            string `protobuf:"bytes,9,opt,name=id,proto3" json:"id,omitempty"`
	UserId        string `protobuf:"bytes,10,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountResponse) Descriptor deprecated

func (*GetAccountResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.

func (*GetAccountResponse) GetAccountNumber

func (x *GetAccountResponse) GetAccountNumber() string

func (*GetAccountResponse) GetAccountType

func (x *GetAccountResponse) GetAccountType() string

func (*GetAccountResponse) GetBalance

func (x *GetAccountResponse) GetBalance() string

func (*GetAccountResponse) GetCreatedAt

func (x *GetAccountResponse) GetCreatedAt() string

func (*GetAccountResponse) GetCurrency

func (x *GetAccountResponse) GetCurrency() string

func (*GetAccountResponse) GetId

func (x *GetAccountResponse) GetId() string

func (*GetAccountResponse) GetLastActivity

func (x *GetAccountResponse) GetLastActivity() string

func (*GetAccountResponse) GetStatus

func (x *GetAccountResponse) GetStatus() string

func (*GetAccountResponse) GetUpdatedAt

func (x *GetAccountResponse) GetUpdatedAt() string

func (*GetAccountResponse) GetUserId

func (x *GetAccountResponse) GetUserId() string

func (*GetAccountResponse) ProtoMessage

func (*GetAccountResponse) ProtoMessage()

func (*GetAccountResponse) ProtoReflect

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

func (*GetAccountResponse) Reset

func (x *GetAccountResponse) Reset()

func (*GetAccountResponse) String

func (x *GetAccountResponse) String() string

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct{}

UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAccountServiceServer) CreateAccount

func (UnimplementedAccountServiceServer) GetAccountByID

func (UnimplementedAccountServiceServer) GetAccountByUserID

type UnsafeAccountServiceServer

type UnsafeAccountServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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