Documentation ¶
Index ¶
- Variables
- func GenerateInit(serverName string, path string) *gql
- func Init(serverName string, embedFS embed.FS, folder string) *gql
- type DefaultArguments
- type Directives
- type EventID
- type HttpRequest
- type HttpResponse
- type ObjectTypes
- type OperationID
- type RequestID
- type Response
- type Scalars
- type SocketID
- type SourceEvents
- type Subscription
- type SubscriptionClose
- 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 GenerateInit ¶
Types ¶
type DefaultArguments ¶
type Directives ¶
type HttpRequest ¶
type HttpResponse ¶
type HttpResponse struct { Data string `json:"data,omitempty"` Errors []definitionError.GQLError `json:"errors,omitempty"` }
type ObjectTypes ¶
type ObjectTypes map[string]resolvers.ObjectTypeInterface
type OperationID ¶
type OperationID 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.