node

package
v0.0.0-...-38b4e49 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT 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