Documentation ¶
Index ¶
- Variables
- func Init(filesystem systemutils.FSInterface, folder string) *gql
- func OnAuthorizate(authInfo AuthorizateInfo) (err definitionError.GQLError)
- func OnIntrospection() (err definitionError.GQLError)
- type Access
- type AuthorizateInfo
- type DefaultArguments
- type Directives
- type EventID
- type Grant
- type HttpRequest
- type HttpResponse
- type ObjectTypes
- type OperationID
- type RequestID
- type ResolverName
- type Response
- type Scalars
- type SocketID
- type SourceEvents
- type Subscription
- type SubscriptionClose
- type TypeName
- type WebSocketRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var PubSub = &SourceEvents{ subscriptionEvents: make(map[OperationID]chan interface{}, 0), operationEvents: make(map[OperationID]map[EventID]*Subscription, 0), }
Functions ¶
func Init ¶
func Init(filesystem systemutils.FSInterface, folder string) *gql
func OnAuthorizate ¶ added in v0.12.0
func OnAuthorizate(authInfo AuthorizateInfo) (err definitionError.GQLError)
func OnIntrospection ¶ added in v0.12.0
func OnIntrospection() (err definitionError.GQLError)
Types ¶
type AuthorizateInfo ¶ added in v0.12.0
type AuthorizateInfo struct { Operation string SrcType TypeName DstType TypeName Resolver ResolverName SessionID string }
type DefaultArguments ¶
type Directives ¶
type HttpRequest ¶
type HttpResponse ¶
type ObjectTypes ¶
type ObjectTypes map[string]resolvers.ObjectTypeInterface
type OperationID ¶
type OperationID string
type ResolverName ¶ added in v0.12.0
type ResolverName string
type SourceEvents ¶
type SourceEvents struct {
// contains filtered or unexported fields
}
func (*SourceEvents) Publish ¶
func (o *SourceEvents) Publish(operationID OperationID, value interface{})
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
type SubscriptionClose ¶
type SubscriptionClose struct{}
type WebSocketRequest ¶
type WebSocketRequest struct { Id string `json:"id"` Type string `json:"type"` Payload HttpRequest `json:"payload"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.