Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ClientMutationsResolver ¶
type ClientMutationsResolver interface { UpdateClient(ctx context.Context, obj *model.ClientMutations, input model.UpdateClientInput) (*clients_service.Client, error) RegenerateAPIKey(ctx context.Context, obj *model.ClientMutations) (*clients_service.Client, error) Deactivate(ctx context.Context, obj *model.ClientMutations) (*clients_service.Client, error) }
type ClientResolver ¶
type ClientResolver interface { CreatedAt(ctx context.Context, obj *clients_service.Client) (*time.Time, error) Wallets(ctx context.Context, obj *clients_service.Client) ([]*crypto_service.Wallet, error) Invoices(ctx context.Context, obj *clients_service.Client) ([]*invoices_service.Invoice, error) }
type ComplexityRoot ¶
type ComplexityRoot struct { Balance struct { Balance func(childComplexity int) int Token func(childComplexity int) int UsdBalance func(childComplexity int) int } CheckInvoicePayload struct { Invoice func(childComplexity int) int } Client struct { ApiKey func(childComplexity int) int CreatedAt func(childComplexity int) int Email func(childComplexity int) int Id func(childComplexity int) int Invoices func(childComplexity int) int IsInvoiceNotificationEnabled func(childComplexity int) int PhotoUrl func(childComplexity int) int Username func(childComplexity int) int Wallets func(childComplexity int) int } ClientMutations struct { Deactivate func(childComplexity int) int RegenerateAPIKey func(childComplexity int) int UpdateClient func(childComplexity int, input model.UpdateClientInput) int } ClientsPagination struct { Items func(childComplexity int) int } CreateInvoicePayload struct { ID func(childComplexity int) int } FeePayload struct { TokenAmount func(childComplexity int) int UsdAmount func(childComplexity int) int } Invoice struct { Address func(childComplexity int) int Chain func(childComplexity int) int CreatedAt func(childComplexity int) int Id func(childComplexity int) int Payer func(childComplexity int) int Status func(childComplexity int) int Token func(childComplexity int) int TokenAmount func(childComplexity int) int UsdAmount func(childComplexity int) int } InvoiceMutations struct { CheckInvoice func(childComplexity int, input model.CheckInvoiceInput) int CreateInvoice func(childComplexity int, input model.CreateInvoiceInput) int UpdateInvoice func(childComplexity int, input model.UpdateInvoiceInput) int } InvoicesPagination struct { Items func(childComplexity int) int } LoginPayload struct { Token func(childComplexity int) int } MainBalance struct { UsdBalance func(childComplexity int) int } Mutation struct { ClientMutations func(childComplexity int) int InvoiceMutations func(childComplexity int) int Login func(childComplexity int, input model.LoginInput) int SendEmailOtp func(childComplexity int, input model.SendEmailOtpInput) int SignUp func(childComplexity int, input model.SignUpInput) int Transfer func(childComplexity int, input model.TransferInput) int } Query struct { Balance func(childComplexity int, filter model.BalanceFilter) int Clients func(childComplexity int, filter *model.ClientsFilter, page int, perPage int) int Fee func(childComplexity int, filter *model.FeeFilter) int Invoices func(childComplexity int, filter *model.InvoicesFilter, page int, perPage int) int MainBalance func(childComplexity int) int Me func(childComplexity int) int Transactions func(childComplexity int, filter *model.TransactionsFilter, page int, perPage int) int Wallets func(childComplexity int, filter *model.WalletsFilter) int } SendEmailOtpPayload struct { EmailCodeID func(childComplexity int) int } ShortClient struct { Id func(childComplexity int) int PhotoUrl func(childComplexity int) int Username func(childComplexity int) int } SignUpPayload struct { Success func(childComplexity int) int } Transaction struct { Amount func(childComplexity int) int Chain func(childComplexity int) int CreatedAt func(childComplexity int) int FromAddress func(childComplexity int) int Hash func(childComplexity int) int Id func(childComplexity int) int IsClientSender func(childComplexity int) int Receiver func(childComplexity int) int Sender func(childComplexity int) int ToAddress func(childComplexity int) int Token func(childComplexity int) int } TransactionsPagination struct { Items func(childComplexity int) int } TransferPayload struct { Hash func(childComplexity int) int } UpdateInvoicePayload struct { Invoice func(childComplexity int) int } Wallet struct { Address func(childComplexity int) int Chain func(childComplexity int) int } WalletsPagination struct { Items func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type InvoiceMutationsResolver ¶
type InvoiceMutationsResolver interface { CreateInvoice(ctx context.Context, obj *model.InvoiceMutations, input model.CreateInvoiceInput) (*model.CreateInvoicePayload, error) UpdateInvoice(ctx context.Context, obj *model.InvoiceMutations, input model.UpdateInvoiceInput) (*model.UpdateInvoicePayload, error) CheckInvoice(ctx context.Context, obj *model.InvoiceMutations, input model.CheckInvoiceInput) (*model.CheckInvoicePayload, error) }
type InvoiceResolver ¶
type InvoiceResolver interface { Status(ctx context.Context, obj *invoices_service.Invoice) (model.InvoiceStatus, error) CreatedAt(ctx context.Context, obj *invoices_service.Invoice) (*time.Time, error) Payer(ctx context.Context, obj *invoices_service.Invoice) (*clients_service.Client, error) }
type MutationResolver ¶
type MutationResolver interface { ClientMutations(ctx context.Context) (*model.ClientMutations, error) SendEmailOtp(ctx context.Context, input model.SendEmailOtpInput) (*model.SendEmailOtpPayload, error) InvoiceMutations(ctx context.Context) (*model.InvoiceMutations, error) Login(ctx context.Context, input model.LoginInput) (*model.LoginPayload, error) SignUp(ctx context.Context, input model.SignUpInput) (*model.SignUpPayload, error) Transfer(ctx context.Context, input model.TransferInput) (*model.TransferPayload, error) }
type QueryResolver ¶
type QueryResolver interface { Balance(ctx context.Context, filter model.BalanceFilter) (*model.Balance, error) Clients(ctx context.Context, filter *model.ClientsFilter, page int, perPage int) (*model.ClientsPagination, error) Fee(ctx context.Context, filter *model.FeeFilter) (*model.FeePayload, error) Invoices(ctx context.Context, filter *model.InvoicesFilter, page int, perPage int) (*model.InvoicesPagination, error) MainBalance(ctx context.Context) (*model.MainBalance, error) Me(ctx context.Context) (*clients_service.Client, error) Transactions(ctx context.Context, filter *model.TransactionsFilter, page int, perPage int) (*model.TransactionsPagination, error) Wallets(ctx context.Context, filter *model.WalletsFilter) (*model.WalletsPagination, error) }
type ResolverRoot ¶
type ResolverRoot interface { Client() ClientResolver ClientMutations() ClientMutationsResolver Invoice() InvoiceResolver InvoiceMutations() InvoiceMutationsResolver Mutation() MutationResolver Query() QueryResolver Transaction() TransactionResolver }
type TransactionResolver ¶
type TransactionResolver interface { Amount(ctx context.Context, obj *crypto_service.Transaction) (float64, error) CreatedAt(ctx context.Context, obj *crypto_service.Transaction) (*time.Time, error) Sender(ctx context.Context, obj *crypto_service.Transaction) (*clients_service.Client, error) Receiver(ctx context.Context, obj *crypto_service.Transaction) (*clients_service.Client, error) IsClientSender(ctx context.Context, obj *crypto_service.Transaction) (bool, error) }
Source Files ¶
- balance.generated.go
- balance.query.generated.go
- client.generated.go
- client.mutation.generated.go
- clients.query.generated.go
- email.mutation.generated.go
- fee.query.generated.go
- invoice.generated.go
- invoice.mutation.generated.go
- invoice_status.generated.go
- invoices.query.generated.go
- login.generated.go
- main_balance.generated.go
- prelude.generated.go
- root_.generated.go
- scalars.generated.go
- schema.generated.go
- short_client.generated.go
- sign_up.mutation.generated.go
- token_claims.generated.go
- transaction.generated.go
- transactions.query.generated.go
- transfer.mutation.generated.go
- wallet.generated.go
- wallets.query.generated.go
Click to show internal directories.
Click to hide internal directories.