util

package
v0.7.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package util provides utility structs and methods for Open Match.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiClose

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

MultiClose is a helper for closing multiple close functions at the end of a program.

func NewMultiClose

func NewMultiClose() *MultiClose

NewMultiClose creates a new multi-closer.

func (*MultiClose) AddCloseFunc

func (mc *MultiClose) AddCloseFunc(closer func())

AddCloseFunc adds a close function.

func (*MultiClose) AddCloseWithErrorFunc

func (mc *MultiClose) AddCloseWithErrorFunc(closer func() error)

AddCloseWithErrorFunc adds a close function.

func (*MultiClose) Close

func (mc *MultiClose) Close()

Close shutsdown the server and frees the TCP port.

Directories

Path Synopsis
Package testing provides utility methods for testing.
Package testing provides utility methods for testing.

Jump to

Keyboard shortcuts

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