Documentation ¶
Index ¶
- func NewTestServiceCLICommand() *cobra.Command
- func NewTestServiceCLICommandWithClientProvider(clientProvider CLITestServiceClientProvider) *cobra.Command
- func RegisterRoutesTestService(router wrouter.Router, impl TestService, routerParams ...wrouter.RouteParam) error
- type CLIConfig
- type CLITestServiceClientProvider
- type TestService
- type TestServiceCLICommand
- type TestServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestServiceCLICommand ¶ added in v6.18.0
func NewTestServiceCLICommandWithClientProvider ¶ added in v6.18.0
func NewTestServiceCLICommandWithClientProvider(clientProvider CLITestServiceClientProvider) *cobra.Command
func RegisterRoutesTestService ¶
func RegisterRoutesTestService(router wrouter.Router, impl TestService, routerParams ...wrouter.RouteParam) error
RegisterRoutesTestService registers handlers for the TestService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.
Types ¶
type CLIConfig ¶ added in v6.18.0
type CLIConfig struct {
Client httpclient.ClientConfig `yaml:",inline"`
}
type CLITestServiceClientProvider ¶ added in v6.18.0
type CLITestServiceClientProvider interface {
Get(ctx context.Context, flags *pflag.FlagSet) (TestServiceClient, error)
}
func NewDefaultCLITestServiceClientProvider ¶ added in v6.18.0
func NewDefaultCLITestServiceClientProvider() CLITestServiceClientProvider
type TestService ¶
type TestServiceCLICommand ¶ added in v6.18.0
type TestServiceCLICommand struct {
// contains filtered or unexported fields
}
type TestServiceClient ¶
type TestServiceClient interface {
Echo(ctx context.Context, inputArg string, repsArg int, optionalArg *string, listParamArg []int, lastParamArg *string) (string, error)
}
func NewTestServiceClient ¶
func NewTestServiceClient(client httpclient.Client) TestServiceClient
Click to show internal directories.
Click to hide internal directories.