invoke

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestContext

type RequestContext struct {
	TraceID   string
	RequestID string
}

type Service

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

func NewService

func NewService(rpcClient *rpc.Client, timeout int64) *Service

func (*Service) Invoke

func (svc *Service) Invoke(request any, response any, requestCtx RequestContext) error

func (*Service) InvokeJSON

func (svc *Service) InvokeJSON(request []byte, requestCtx RequestContext) ([]byte, error)

Jump to

Keyboard shortcuts

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