node

package
v2.0.0-...-5372cc7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServicePath = "Node"
)

Variables

This section is empty.

Functions

func NewServer

func NewServer(provider transport.NodeProvider, opts *server.Options) (*server.Server, error)

Types

type Client

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

func NewClient

func NewClient(cli *cli.OneClient) *Client

func (*Client) Deliver

func (c *Client) Deliver(ctx context.Context, args *transport.DeliverArgs) (miss bool, err error)

Deliver 投递消息

func (*Client) Trigger

func (c *Client) Trigger(ctx context.Context, args *transport.TriggerArgs) (miss bool, err error)

Trigger 触发事件

Jump to

Keyboard shortcuts

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