package
0.0.0-20200409172854-0805cb333282
Repository: https://github.com/uniqush/uniqush-push.git
Documentation: pkg.go.dev
# Functions
NewMockNetConn creates a mock of a bi-directional net.Conn, for testing the client's network logic.
SimulateStableAPNSServer returns a mock binary APNs server that will respond to all notifications with the given status code.
# Structs
APNSNotification contains the unserialized binary notification.
APNSResponse represents the mock response generated by the mock server.
MockDirectionalConn represents the one-directional connection, and mocks a network connection.
MockNetConn is a mock of the net.Conn interface, used for testing for race conditions in the binary API client's network code.