Skip to content

Commit

Permalink
client: expose functions
Browse files Browse the repository at this point in the history
Problem: the connected, gethost, and close functions
are not exposed.
Solution: add them to the interface.

Signed-off-by: vsoch <[email protected]>
vsoch committed Jan 5, 2025
1 parent 4cb59df commit 77b9883
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
@@ -25,6 +25,11 @@ 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)

// Functions that aren't related to fluxion directly
Close() error
GetHost() string
Connected() bool
}

// NewClient creates a new FluxionClient

0 comments on commit 77b9883

Please sign in to comment.