servicev1

package
v0.0.0-...-c061cf9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoLucaService_GetAccount_FullMethodName        = "/goluca.service.v1.GoLucaService/GetAccount"
	GoLucaService_ListAccounts_FullMethodName      = "/goluca.service.v1.GoLucaService/ListAccounts"
	GoLucaService_CreateAccount_FullMethodName     = "/goluca.service.v1.GoLucaService/CreateAccount"
	GoLucaService_GetTransaction_FullMethodName    = "/goluca.service.v1.GoLucaService/GetTransaction"
	GoLucaService_ListTransactions_FullMethodName  = "/goluca.service.v1.GoLucaService/ListTransactions"
	GoLucaService_CreateTransaction_FullMethodName = "/goluca.service.v1.GoLucaService/CreateTransaction"
)

Variables

View Source
var File_goluca_service_v1_service_proto protoreflect.FileDescriptor
View Source
var GoLucaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goluca.service.v1.GoLucaService",
	HandlerType: (*GoLucaServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAccount",
			Handler:    _GoLucaService_GetAccount_Handler,
		},
		{
			MethodName: "ListAccounts",
			Handler:    _GoLucaService_ListAccounts_Handler,
		},
		{
			MethodName: "CreateAccount",
			Handler:    _GoLucaService_CreateAccount_Handler,
		},
		{
			MethodName: "GetTransaction",
			Handler:    _GoLucaService_GetTransaction_Handler,
		},
		{
			MethodName: "ListTransactions",
			Handler:    _GoLucaService_ListTransactions_Handler,
		},
		{
			MethodName: "CreateTransaction",
			Handler:    _GoLucaService_CreateTransaction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "goluca/service/v1/service.proto",
}

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

Functions

func RegisterGoLucaServiceServer

func RegisterGoLucaServiceServer(s grpc.ServiceRegistrar, srv GoLucaServiceServer)

Types

type CreateAccountRequest

type CreateAccountRequest struct {
	ParentId *string        `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
	Name     string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type     v1.AccountType `protobuf:"varint,3,opt,name=type,proto3,enum=goluca.model.v1.AccountType" json:"type,omitempty"`
	Basis    v1.Basis       `protobuf:"varint,4,opt,name=basis,proto3,enum=goluca.model.v1.Basis" json:"basis,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountRequest) Descriptor deprecated

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

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetBasis

func (x *CreateAccountRequest) GetBasis() v1.Basis

func (*CreateAccountRequest) GetName

func (x *CreateAccountRequest) GetName() string

func (*CreateAccountRequest) GetParentId

func (x *CreateAccountRequest) GetParentId() string

func (*CreateAccountRequest) GetType

func (x *CreateAccountRequest) GetType() v1.AccountType

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 {
	Account *v1.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountResponse) Descriptor deprecated

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

Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountResponse) GetAccount

func (x *CreateAccountResponse) GetAccount() *v1.Account

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 CreateEntry

type CreateEntry struct {
	Description   string     `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	DebitAccount  string     `protobuf:"bytes,2,opt,name=debit_account,json=debitAccount,proto3" json:"debit_account,omitempty"`
	CreditAccount string     `protobuf:"bytes,3,opt,name=credit_account,json=creditAccount,proto3" json:"credit_account,omitempty"`
	Amount        *v1.Amount `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEntry) Descriptor deprecated

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

Deprecated: Use CreateEntry.ProtoReflect.Descriptor instead.

func (*CreateEntry) GetAmount

func (x *CreateEntry) GetAmount() *v1.Amount

func (*CreateEntry) GetCreditAccount

func (x *CreateEntry) GetCreditAccount() string

func (*CreateEntry) GetDebitAccount

func (x *CreateEntry) GetDebitAccount() string

func (*CreateEntry) GetDescription

func (x *CreateEntry) GetDescription() string

func (*CreateEntry) ProtoMessage

func (*CreateEntry) ProtoMessage()

func (*CreateEntry) ProtoReflect

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

func (*CreateEntry) Reset

func (x *CreateEntry) Reset()

func (*CreateEntry) String

func (x *CreateEntry) String() string

type CreateTransactionRequest

type CreateTransactionRequest struct {
	Description string         `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Entries     []*CreateEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTransactionRequest) Descriptor deprecated

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

Deprecated: Use CreateTransactionRequest.ProtoReflect.Descriptor instead.

func (*CreateTransactionRequest) GetDescription

func (x *CreateTransactionRequest) GetDescription() string

func (*CreateTransactionRequest) GetEntries

func (x *CreateTransactionRequest) GetEntries() []*CreateEntry

func (*CreateTransactionRequest) ProtoMessage

func (*CreateTransactionRequest) ProtoMessage()

func (*CreateTransactionRequest) ProtoReflect

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

func (*CreateTransactionRequest) Reset

func (x *CreateTransactionRequest) Reset()

func (*CreateTransactionRequest) String

func (x *CreateTransactionRequest) String() string

type CreateTransactionResponse

type CreateTransactionResponse struct {
	Transaction *v1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTransactionResponse) Descriptor deprecated

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

Deprecated: Use CreateTransactionResponse.ProtoReflect.Descriptor instead.

func (*CreateTransactionResponse) GetTransaction

func (x *CreateTransactionResponse) GetTransaction() *v1.Transaction

func (*CreateTransactionResponse) ProtoMessage

func (*CreateTransactionResponse) ProtoMessage()

func (*CreateTransactionResponse) ProtoReflect

func (*CreateTransactionResponse) Reset

func (x *CreateTransactionResponse) Reset()

func (*CreateTransactionResponse) String

func (x *CreateTransactionResponse) String() string

type GetAccountRequest

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

func (*GetAccountRequest) Descriptor deprecated

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

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetAccountId

func (x *GetAccountRequest) GetAccountId() 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 {
	Account *v1.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountResponse) Descriptor deprecated

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

Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.

func (*GetAccountResponse) GetAccount

func (x *GetAccountResponse) GetAccount() *v1.Account

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 GetTransactionRequest

type GetTransactionRequest struct {
	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTransactionRequest) Descriptor deprecated

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

Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead.

func (*GetTransactionRequest) GetTransactionId

func (x *GetTransactionRequest) GetTransactionId() string

func (*GetTransactionRequest) ProtoMessage

func (*GetTransactionRequest) ProtoMessage()

func (*GetTransactionRequest) ProtoReflect

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

func (*GetTransactionRequest) Reset

func (x *GetTransactionRequest) Reset()

func (*GetTransactionRequest) String

func (x *GetTransactionRequest) String() string

type GetTransactionResponse

type GetTransactionResponse struct {
	Transaction *v1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTransactionResponse) Descriptor deprecated

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

Deprecated: Use GetTransactionResponse.ProtoReflect.Descriptor instead.

func (*GetTransactionResponse) GetTransaction

func (x *GetTransactionResponse) GetTransaction() *v1.Transaction

func (*GetTransactionResponse) ProtoMessage

func (*GetTransactionResponse) ProtoMessage()

func (*GetTransactionResponse) ProtoReflect

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

func (*GetTransactionResponse) Reset

func (x *GetTransactionResponse) Reset()

func (*GetTransactionResponse) String

func (x *GetTransactionResponse) String() string

type GoLucaServiceClient

type GoLucaServiceClient interface {
	// Account Endpoints
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
	CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error)
	// Transaction endpoints
	GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error)
	ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (*ListTransactionsResponse, error)
	CreateTransaction(ctx context.Context, in *CreateTransactionRequest, opts ...grpc.CallOption) (*CreateTransactionResponse, error)
}

GoLucaServiceClient is the client API for GoLucaService 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 GoLucaServiceServer

type GoLucaServiceServer interface {
	// Account Endpoints
	GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
	ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
	CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
	// Transaction endpoints
	GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error)
	ListTransactions(context.Context, *ListTransactionsRequest) (*ListTransactionsResponse, error)
	CreateTransaction(context.Context, *CreateTransactionRequest) (*CreateTransactionResponse, error)
}

GoLucaServiceServer is the server API for GoLucaService service. All implementations should embed UnimplementedGoLucaServiceServer for forward compatibility

type ListAccountsRequest

type ListAccountsRequest struct {
	PageSize  uint64 `protobuf:"varint,2047,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,2046,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountsRequest) Descriptor deprecated

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

Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListAccountsRequest) GetPageSize

func (x *ListAccountsRequest) GetPageSize() uint64

func (*ListAccountsRequest) GetPageToken

func (x *ListAccountsRequest) GetPageToken() string

func (*ListAccountsRequest) ProtoMessage

func (*ListAccountsRequest) ProtoMessage()

func (*ListAccountsRequest) ProtoReflect

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

func (*ListAccountsRequest) Reset

func (x *ListAccountsRequest) Reset()

func (*ListAccountsRequest) String

func (x *ListAccountsRequest) String() string

type ListAccountsResponse

type ListAccountsResponse struct {
	Accounts      []*v1.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	NextPageToken string        `protobuf:"bytes,2047,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountsResponse) Descriptor deprecated

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

Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListAccountsResponse) GetAccounts

func (x *ListAccountsResponse) GetAccounts() []*v1.Account

func (*ListAccountsResponse) GetNextPageToken

func (x *ListAccountsResponse) GetNextPageToken() string

func (*ListAccountsResponse) ProtoMessage

func (*ListAccountsResponse) ProtoMessage()

func (*ListAccountsResponse) ProtoReflect

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

func (*ListAccountsResponse) Reset

func (x *ListAccountsResponse) Reset()

func (*ListAccountsResponse) String

func (x *ListAccountsResponse) String() string

type ListTransactionsRequest

type ListTransactionsRequest struct {
	PageSize  uint64 `protobuf:"varint,2047,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,2046,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransactionsRequest) Descriptor deprecated

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

Deprecated: Use ListTransactionsRequest.ProtoReflect.Descriptor instead.

func (*ListTransactionsRequest) GetPageSize

func (x *ListTransactionsRequest) GetPageSize() uint64

func (*ListTransactionsRequest) GetPageToken

func (x *ListTransactionsRequest) GetPageToken() string

func (*ListTransactionsRequest) ProtoMessage

func (*ListTransactionsRequest) ProtoMessage()

func (*ListTransactionsRequest) ProtoReflect

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

func (*ListTransactionsRequest) Reset

func (x *ListTransactionsRequest) Reset()

func (*ListTransactionsRequest) String

func (x *ListTransactionsRequest) String() string

type ListTransactionsResponse

type ListTransactionsResponse struct {
	Transactions  []*v1.Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	NextPageToken string            `protobuf:"bytes,2047,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransactionsResponse) Descriptor deprecated

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

Deprecated: Use ListTransactionsResponse.ProtoReflect.Descriptor instead.

func (*ListTransactionsResponse) GetNextPageToken

func (x *ListTransactionsResponse) GetNextPageToken() string

func (*ListTransactionsResponse) GetTransactions

func (x *ListTransactionsResponse) GetTransactions() []*v1.Transaction

func (*ListTransactionsResponse) ProtoMessage

func (*ListTransactionsResponse) ProtoMessage()

func (*ListTransactionsResponse) ProtoReflect

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

func (*ListTransactionsResponse) Reset

func (x *ListTransactionsResponse) Reset()

func (*ListTransactionsResponse) String

func (x *ListTransactionsResponse) String() string

type UnimplementedGoLucaServiceServer

type UnimplementedGoLucaServiceServer struct {
}

UnimplementedGoLucaServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedGoLucaServiceServer) CreateAccount

func (UnimplementedGoLucaServiceServer) CreateTransaction

func (UnimplementedGoLucaServiceServer) GetAccount

func (UnimplementedGoLucaServiceServer) GetTransaction

func (UnimplementedGoLucaServiceServer) ListAccounts

func (UnimplementedGoLucaServiceServer) ListTransactions

type UnsafeGoLucaServiceServer

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

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

Jump to

Keyboard shortcuts

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