rgraphql

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateService

func CreateService(srv GraphQLServiceRPC, options []connect.HandlerOption) (*api.Service, error)

func ToAPIGraphQL

func ToAPIGraphQL(g mgraphql.GraphQL) *graphqlv1.GraphQL

func ToAPIGraphQLVersion

func ToAPIGraphQLVersion(version mgraphql.GraphQLVersion) *graphqlv1.GraphQLVersion

ToAPIGraphQLVersion converts model to API type

Types

type AssertionResult

type AssertionResult struct {
	AssertionID idwrap.IDWrap
	Expression  string
	Success     bool
	Error       error
	EvaluatedAt time.Time
}

AssertionResult represents the result of evaluating a single assertion

type GraphQLAssertEvent

type GraphQLAssertEvent struct {
	Type          string
	GraphQLAssert *graphqlv1.GraphQLAssert
	IsDelta       bool
}

type GraphQLAssertTopic

type GraphQLAssertTopic struct {
	WorkspaceID idwrap.IDWrap
}

type GraphQLEvent

type GraphQLEvent struct {
	Type    string
	GraphQL *graphqlv1.GraphQL
}

type GraphQLHeaderEvent

type GraphQLHeaderEvent struct {
	Type          string
	GraphQLHeader *graphqlv1.GraphQLHeader
	IsDelta       bool
}

type GraphQLHeaderTopic

type GraphQLHeaderTopic struct {
	WorkspaceID idwrap.IDWrap
}

type GraphQLResolver

type GraphQLResolver interface {
	Resolve(ctx context.Context, baseID idwrap.IDWrap, deltaID *idwrap.IDWrap) (*delta.ResolveGraphQLOutput, error)
}

GraphQLResolver defines the interface for resolving GraphQL delta requests

type GraphQLResponseAssertEvent

type GraphQLResponseAssertEvent struct {
	Type                  string
	GraphQLResponseAssert *graphqlv1.GraphQLResponseAssert
}

type GraphQLResponseAssertTopic

type GraphQLResponseAssertTopic struct {
	WorkspaceID idwrap.IDWrap
}

type GraphQLResponseData

type GraphQLResponseData struct {
	StatusCode int
	Body       []byte
	Headers    map[string]string
}

GraphQLResponseData wraps the response for assertion evaluation

type GraphQLResponseEvent

type GraphQLResponseEvent struct {
	Type            string
	GraphQLResponse *graphqlv1.GraphQLResponse
}

type GraphQLResponseHeaderEvent

type GraphQLResponseHeaderEvent struct {
	Type                  string
	GraphQLResponseHeader *graphqlv1.GraphQLResponseHeader
}

type GraphQLResponseHeaderTopic

type GraphQLResponseHeaderTopic struct {
	WorkspaceID idwrap.IDWrap
}

type GraphQLResponseTopic

type GraphQLResponseTopic struct {
	WorkspaceID idwrap.IDWrap
}

type GraphQLServiceRPC

type GraphQLServiceRPC struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

GraphQLServiceRPC handles GraphQL RPC operations

func (*GraphQLServiceRPC) GraphQLAssertDeltaCollection

Delta operations

func (*GraphQLServiceRPC) GraphQLAssertDeltaSync

func (*GraphQLServiceRPC) GraphQLAssertSync

func (*GraphQLServiceRPC) GraphQLDelete

func (*GraphQLServiceRPC) GraphQLDeltaCollection

GraphQLDeltaCollection fetches all delta GraphQL entries for the user's workspaces

func (*GraphQLServiceRPC) GraphQLDeltaDelete

GraphQLDeltaDelete deletes delta GraphQL entries

func (*GraphQLServiceRPC) GraphQLDeltaInsert

GraphQLDeltaInsert creates new delta GraphQL entries

func (*GraphQLServiceRPC) GraphQLDeltaSync

GraphQLDeltaSync streams delta GraphQL changes in real-time

func (*GraphQLServiceRPC) GraphQLDeltaUpdate

GraphQLDeltaUpdate updates existing delta GraphQL entries

func (*GraphQLServiceRPC) GraphQLDuplicate

func (*GraphQLServiceRPC) GraphQLHeaderDeltaCollection

GraphQLHeaderDeltaCollection fetches all delta GraphQL headers for the user's workspaces

func (*GraphQLServiceRPC) GraphQLHeaderDeltaDelete

GraphQLHeaderDeltaDelete deletes delta GraphQL header entries

func (*GraphQLServiceRPC) GraphQLHeaderDeltaInsert

GraphQLHeaderDeltaInsert creates new delta GraphQL header entries

func (*GraphQLServiceRPC) GraphQLHeaderDeltaSync

GraphQLHeaderDeltaSync streams delta header changes to the client

func (*GraphQLServiceRPC) GraphQLHeaderDeltaUpdate

GraphQLHeaderDeltaUpdate updates existing delta GraphQL header entries

func (*GraphQLServiceRPC) GraphQLHeaderSync

func (*GraphQLServiceRPC) GraphQLInsert

func (*GraphQLServiceRPC) GraphQLResponseSync

func (*GraphQLServiceRPC) GraphQLRun

func (*GraphQLServiceRPC) GraphQLSync

func (*GraphQLServiceRPC) GraphQLUpdate

func (*GraphQLServiceRPC) GraphQLVersionSync

type GraphQLServiceRPCDeps

type GraphQLServiceRPCDeps struct {
	DB        *sql.DB
	Services  GraphQLServiceRPCServices
	Readers   GraphQLServiceRPCReaders
	Resolver  GraphQLResolver
	Streamers *GraphQLStreamers
}

func (*GraphQLServiceRPCDeps) Validate

func (d *GraphQLServiceRPCDeps) Validate() error

type GraphQLServiceRPCReaders

type GraphQLServiceRPCReaders struct {
	GraphQL   *sgraphql.Reader
	User      *sworkspace.UserReader
	Workspace *sworkspace.WorkspaceReader
}

type GraphQLTopic

type GraphQLTopic struct {
	WorkspaceID idwrap.IDWrap
}

type GraphQLVersionEvent

type GraphQLVersionEvent struct {
	Type           string
	GraphQLVersion *graphqlv1.GraphQLVersion
}

type GraphQLVersionTopic

type GraphQLVersionTopic struct {
	WorkspaceID idwrap.IDWrap
}

Jump to

Keyboard shortcuts

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