fake

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package fake provide mock gql server used for unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server mock the tower server, you can query, subscribe or login to the server. Use server.NewClient() connect to the mock server.

func NewServer

func NewServer(ld conn.ListenerDialer) *Server

NewServer creates a new instance of Server.

func (*Server) NewClient

func (s *Server) NewClient() *client.Client

NewClient creates a client that can connect to the server.

func (*Server) Serve

func (s *Server) Serve()

Serve start Server if is stopped.

func (*Server) Stop

func (s *Server) Stop()

Stop the Server if it is running.

func (*Server) TrackerFactory

func (s *Server) TrackerFactory() *tracker.Factory

TrackerFactory let you can mock server resources.

Directories

Path Synopsis
graph

Jump to

Keyboard shortcuts

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