client

package
v0.0.0-...-529ef22 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Match(ctx context.Context, in *pb.MatchRequest, opts ...grpc.CallOption) (*pb.MatchResponse, error)
	Cancel(ctx context.Context, in *pb.CancelRequest, opts ...grpc.CallOption) (*pb.CancelResponse, error)
	Init(ctx context.Context, in *pb.InitRequest, opts ...grpc.CallOption) (*pb.InitResponse, error)
}

Client interface defines functions required for a valid client

func NewClient

func NewClient(host string) (Client, error)

NewClient creates a new FluxionClient

type FluxionClient

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

FluxionClient interacts with Fluxion

func (*FluxionClient) Cancel

Cancel a job

func (*FluxionClient) Close

func (c *FluxionClient) Close() error

Close closes the created resources (e.g. connection).

func (*FluxionClient) Connected

func (c *FluxionClient) Connected() bool

Connected returns true if we are connected and the connection is ready

func (*FluxionClient) GetHost

func (c *FluxionClient) GetHost() string

GetHost returns the private hostn name

func (*FluxionClient) Init

func (c *FluxionClient) Init(ctx context.Context, in *pb.InitRequest, opts ...grpc.CallOption) (*pb.InitResponse, error)

Init the fluxion nodes

func (*FluxionClient) Match

func (c *FluxionClient) Match(ctx context.Context, in *pb.MatchRequest, opts ...grpc.CallOption) (*pb.MatchResponse, error)

Jump to

Keyboard shortcuts

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