client

package
v0.0.0-...-4355fa8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoFlowGRPCClient

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

func NewGoFlowClient

func NewGoFlowClient(connString string, opt ...GoFlowGRPCClientOption) (*GoFlowGRPCClient, error)

func (*GoFlowGRPCClient) Get

func (g *GoFlowGRPCClient) Get(taskID string) (string, error)

func (*GoFlowGRPCClient) Push

func (g *GoFlowGRPCClient) Push(taskType, payload string) (string, error)

type GoFlowGRPCClientOption

type GoFlowGRPCClientOption interface {
	// contains filtered or unexported methods
}

A GoFlowGRPCClientOption sets options such as logger, request timeout, etc.

func WithLogger

func WithLogger(logger log.Logger) GoFlowGRPCClientOption

WithLogger allows you to set logger that will report on basic server start/stop operations.

func WithRequestTimeout

func WithRequestTimeout(requestTimeout time.Duration) GoFlowGRPCClientOption

WithRequestTimeout allows you to set the time the client will wait after sending a request before timing out.

Jump to

Keyboard shortcuts

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