Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatusCode ¶ added in v1.3.3
func NewErrStatus ¶ added in v1.3.1
Types ¶
type Client ¶
type Client interface { GetEvaluation(req *model.GetEvaluationRequest) (*model.GetEvaluationResponse, int, error) RegisterEvents(req *model.RegisterEventsRequest) (*model.RegisterEventsResponse, int, error) }
Client is the client interface for the Bucketeer APIGateway service.
func NewClient ¶
func NewClient(conf *ClientConfig) (Client, error)
NewClient creates a new Client.
NewClient returns error if failed to dial gRPC.
type ClientConfig ¶
type ClientConfig struct { // APIKey is the key to use the Bucketeer APIGateway service. APIKey string // Host is the host name of the target service, e.g. api.example.com. Host string }
ClientConfig is the config for Client.
Click to show internal directories.
Click to hide internal directories.