Documentation ¶
Overview ¶
This package is responsible for serving the GraphQL reader API.
Index ¶
- func Register(e *echo.Echo, convenienceService *services.ConvenienceService, adapter Adapter)
- type Adapter
- type AdapterV1
- func (a AdapterV1) GetAllDelegateCallVouchersByInputIndex(ctx context.Context, inputIndex *int) (*graphql.DelegateCallVoucherConnection, error)
- func (a AdapterV1) GetAllNoticesByInputIndex(ctx context.Context, inputIndex *int) (*graphql.Connection[*graphql.Notice], error)
- func (a AdapterV1) GetAllReportsByInputIndex(ctx context.Context, inputIndex *int) (*graphql.Connection[*graphql.Report], error)
- func (a AdapterV1) GetAllVouchersByInputIndex(ctx context.Context, inputIndex *int) (*graphql.Connection[*graphql.Voucher], error)
- func (a AdapterV1) GetDelegateCallVoucher(ctx context.Context, outputIndex int) (*graphql.DelegateCallVoucher, error)
- func (a AdapterV1) GetDelegateCallVouchers(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*graphql.DelegateCallVoucherConnection, error)
- func (a AdapterV1) GetInput(ctx context.Context, id string) (*graphql.Input, error)
- func (a AdapterV1) GetInputByIndex(ctx context.Context, inputIndex int) (*graphql.Input, error)
- func (a AdapterV1) GetInputs(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*graphql.InputConnection, error)
- func (a AdapterV1) GetNotice(ctx context.Context, outputIndex int) (*graphql.Notice, error)
- func (a AdapterV1) GetNotices(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*graphql.Connection[*graphql.Notice], error)
- func (a AdapterV1) GetReport(ctx context.Context, reportIndex int) (*graphql.Report, error)
- func (a AdapterV1) GetReports(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*graphql.ReportConnection, error)
- func (a AdapterV1) GetVoucher(ctx context.Context, outputIndex int) (*graphql.Voucher, error)
- func (a AdapterV1) GetVouchers(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*graphql.Connection[*graphql.Voucher], error)
- type InputBlobAdapter
- type Resolver
- func (r *Resolver) DelegateCallVoucher() graph.DelegateCallVoucherResolver
- func (r *Resolver) Input() graph.InputResolver
- func (r *Resolver) Notice() graph.NoticeResolver
- func (r *Resolver) Query() graph.QueryResolver
- func (r *Resolver) Report() graph.ReportResolver
- func (r *Resolver) Voucher() graph.VoucherResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register( e *echo.Echo, convenienceService *services.ConvenienceService, adapter Adapter, )
Register the GraphQL reader API to echo.
Types ¶
type Adapter ¶
type Adapter interface { GetReport( ctx context.Context, reportIndex int, ) (*graphql.Report, error) GetReports( ctx context.Context, first *int, last *int, after *string, before *string, inputIndex *int, ) (*graphql.ReportConnection, error) GetAllReportsByInputIndex( ctx context.Context, inputIndex *int, ) (*graphql.ReportConnection, error) GetInputs( ctx context.Context, first *int, last *int, after *string, before *string, where *graphql.InputFilter, ) (*graphql.InputConnection, error) GetInput( ctx context.Context, id string, ) (*graphql.Input, error) GetInputByIndex( ctx context.Context, inputIndex int, ) (*graphql.Input, error) GetNotice( ctx context.Context, outputIndex int, ) (*graphql.Notice, error) GetNotices( ctx context.Context, first *int, last *int, after *string, before *string, inputIndex *int, ) (*graphql.NoticeConnection, error) GetVoucher( ctx context.Context, outputIndex int) (*graphql.Voucher, error) GetDelegateCallVoucher( ctx context.Context, outputIndex int) (*graphql.DelegateCallVoucher, error) GetVouchers( ctx context.Context, first *int, last *int, after *string, before *string, inputIndex *int, filter []*graphql.ConvenientFilter, ) (*graphql.VoucherConnection, error) GetDelegateCallVouchers( ctx context.Context, first *int, last *int, after *string, before *string, inputIndex *int, filter []*graphql.ConvenientFilter, ) (*graphql.DelegateCallVoucherConnection, error) GetAllVouchersByInputIndex( ctx context.Context, inputIndex *int, ) (*graphql.VoucherConnection, error) GetAllDelegateCallVouchersByInputIndex( ctx context.Context, inputIndex *int, ) (*graphql.DelegateCallVoucherConnection, error) GetAllNoticesByInputIndex( ctx context.Context, inputIndex *int, ) (*graphql.Connection[*graphql.Notice], error) }
func NewAdapterV1 ¶
func NewAdapterV1( db *sqlx.DB, convenienceService *services.ConvenienceService, ) Adapter
type AdapterV1 ¶
type AdapterV1 struct {
// contains filtered or unexported fields
}
func (AdapterV1) GetAllDelegateCallVouchersByInputIndex ¶
func (a AdapterV1) GetAllDelegateCallVouchersByInputIndex(ctx context.Context, inputIndex *int) (*graphql.DelegateCallVoucherConnection, error)
GetAllDelegateCallVouchersByInputIndex implements Adapter.
func (AdapterV1) GetAllNoticesByInputIndex ¶
func (AdapterV1) GetAllReportsByInputIndex ¶
func (AdapterV1) GetAllVouchersByInputIndex ¶
func (AdapterV1) GetDelegateCallVoucher ¶
func (a AdapterV1) GetDelegateCallVoucher(ctx context.Context, outputIndex int) (*graphql.DelegateCallVoucher, error)
GetDelegateCallVoucher implements Adapter.
func (AdapterV1) GetDelegateCallVouchers ¶
func (a AdapterV1) GetDelegateCallVouchers(ctx context.Context, first *int, last *int, after *string, before *string, inputIndex *int, filter []*graphql.ConvenientFilter) (*graphql.DelegateCallVoucherConnection, error)
GetDelegateCallVouchers implements Adapter.
func (AdapterV1) GetInputByIndex ¶
GetInputByIndex implements Adapter.
func (AdapterV1) GetNotices ¶
func (AdapterV1) GetReports ¶
func (AdapterV1) GetVoucher ¶
type InputBlobAdapter ¶
type InputBlobAdapter struct{}
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) DelegateCallVoucher ¶
func (r *Resolver) DelegateCallVoucher() graph.DelegateCallVoucherResolver
DelegateCallVoucher returns graph.DelegateCallVoucherResolver implementation.
func (*Resolver) Input ¶
func (r *Resolver) Input() graph.InputResolver
Input returns graph.InputResolver implementation.
func (*Resolver) Notice ¶
func (r *Resolver) Notice() graph.NoticeResolver
Notice returns graph.NoticeResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() graph.QueryResolver
Query returns graph.QueryResolver implementation.
func (*Resolver) Report ¶
func (r *Resolver) Report() graph.ReportResolver
Report returns graph.ReportResolver implementation.
func (*Resolver) Voucher ¶
func (r *Resolver) Voucher() graph.VoucherResolver
Voucher returns graph.VoucherResolver implementation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.