integration

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNRandomSGF

func GenerateNRandomSGF(seed, num, minLength, maxLength int) []string

func GenerateRandomSGF

func GenerateRandomSGF(seed int, num int) string

Types

type Sim

type Sim struct {
	Hub     *hub.Hub
	Clients []*event.TwoWayMockEventChannel

	Logger *logx.Recorder
	// contains filtered or unexported fields
}

func NewSim

func NewSim() (*Sim, error)

func SimWithEvents

func SimWithEvents(roomID string, evts []event.Event) (*Sim, error)

func (*Sim) AddClient

func (s *Sim) AddClient(roomID string)

func (*Sim) ConnectAll

func (s *Sim) ConnectAll()

func (*Sim) DisconnectAll

func (s *Sim) DisconnectAll()

func (*Sim) FlushAll

func (s *Sim) FlushAll()

func (*Sim) SendGet

func (s *Sim) SendGet(route string) ([]byte, error)

func (*Sim) SendPost

func (s *Sim) SendPost(route string, body []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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