Documentation
¶
Overview ¶
Package util provides utility structs and methods for Open Match.
Package util provides utilities for net.Listener.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSynchronizerContextID ¶ added in v0.8.0
AppendSynchronizerContextID adds the synchronizer context id to a request context metadata.
func GetSynchronizerContextID ¶ added in v0.8.0
GetSynchronizerContextID returns the synchronizer context id from the context metadata.
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 (*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.
Click to show internal directories.
Click to hide internal directories.