node

package
v0.0.0-...-e849032 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(cc *grpc.ClientConn) *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