Versions in this module Expand all Collapse all v0 v0.0.1 Jun 23, 2020 Changes in this version + var SchemaRegistry = map[string][]byte + func AuthErrorHandler(w http.ResponseWriter, ctx context.Context, err error) + func Errorf(ctx context.Context, format string, args ...interface{}) *errors.QueryError + func LoggingMiddleware(next http.Handler) http.Handler + func MergeSchemas(first string, second string) string + func MustProtoToOpaqueCursor(entity proto.Message, entityTag string) string + func NewCORSMiddleware() mux.MiddlewareFunc + func RegisterSchema(schemaPrefix, schemaName string, schemaData []byte) + func Status(ctx context.Context, code codes.Code, message string) *errors.QueryError + func UnmarshalCursorProto(opaqued string, entity proto.Message) error + func UnwrapError(ctx context.Context, err error) *errors.QueryError + type EndpointServer struct + func NewEndpointServer(schema *graphql.Schema, authenticator authenticator.Authenticator) *EndpointServer + func (s *EndpointServer) Execute(req *pbgraphql.Request, stream pbgraphql.GraphQL_ExecuteServer) error + type Keyable interface + Key func() string + type MultiRouterClient struct + Toggle *atomic.Bool + func NewMultiRouterClient(v1Client pbsearch.RouterClient, v2Client pbsearch.RouterClient) *MultiRouterClient + func (m *MultiRouterClient) StreamMatches(ctx context.Context, in *pbsearch.RouterRequest, opts ...grpc.CallOption) (pbsearch.Router_StreamMatchesClient, error) + type OpencensusTracer struct + func (t *OpencensusTracer) TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, ...) (context.Context, gqtrace.TraceFieldFinishFunc) + func (t *OpencensusTracer) TraceQuery(ctx context.Context, queryString string, operationName string, ...) (context.Context, gqtrace.TraceQueryFinishFunc) + type Paginator struct + HasNextPage bool + HasPreviousPage bool + func NewPaginator(firstReq, lastReq *types.Uint32, before, after *string, limit uint32, ...) (*Paginator, error) + func (p *Paginator) Paginate(results Pagineable) Pagineable + type Pagineable interface + Append func(slice Pagineable, index int) Pagineable + IsEqual func(index int, key string) bool + Length func() int + type PagineableStrings []string + func (p PagineableStrings) Append(slice Pagineable, index int) Pagineable + func (p PagineableStrings) IsEqual(index int, key string) bool + func (p PagineableStrings) Length() int + type SchemaSelector interface + SchemaID func() schemaID + String func() string + func WithAlpha() SchemaSelector + type Schemas struct + func NewSchemas(resolver interface{}) (*Schemas, error) + func (s *Schemas) GetSchema(selectors ...SchemaSelector) *graphql.Schema + type Server struct + DataIntegrityProofSecret string + func NewServer(grpcListenAddr string, httpListenAddr string, protocol string, ...) *Server + func (s *Server) Launch()