callback

package
v0.0.0-...-e06075d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client ...

func NewCallbackClient

func NewCallbackClient(c *Config) (*Client, error)

NewCallbackClient new callback client

func (*Client) PushMessage

func (c *Client) PushMessage(msg []byte, url string) ([]byte, error)

PushMessage ... TODO: use message queue or channel

type Config

type Config struct {
	TimeOut int
	URL     string
}

Config callback configure

type ICallback

type ICallback interface {
	PushMessage(msg []byte, url string) ([]byte, error)
}

ICallback callback interface

Directories

Path Synopsis
Package mock_callback is a generated GoMock package.
Package mock_callback is a generated GoMock package.

Jump to

Keyboard shortcuts

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