Skip to content

Commit

Permalink
Update resolver structs
Browse files Browse the repository at this point in the history
Updated RequestPayloads to use slice element pointer

Added RequestPayloadObserver for our subscription websocket
payload

Added Info for our ServerInfo query
  • Loading branch information
aaronvb committed Jun 29, 2021
1 parent 6494842 commit dc1d54a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions graph/resolver.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
package graph

import "github.com/aaronvb/request_hole/pkg/protocol"
import (
"sync"

"github.com/aaronvb/request_hole/graph/model"
"github.com/aaronvb/request_hole/pkg/protocol"
)

// This file will not be regenerated automatically.
//
// It serves as dependency injection for your app, add any dependencies you require here.

type Resolver struct {
RequestPayloads *[]protocol.RequestPayload
RequestPayloads *[]*protocol.RequestPayload
RequestPayloadObserver *map[string]chan *protocol.RequestPayload
Info *model.ServerInfo
mu sync.Mutex
}

0 comments on commit dc1d54a

Please sign in to comment.