Documentation ¶
Index ¶
- Constants
- func NewAcsHandler(svc AcsHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type AcsClient
- type AcsHandler
- type UnimplementedAcsHandler
- func (UnimplementedAcsHandler) CreateRegexEvaluator(context.Context, *connect_go.Request[acs.CreateRegexEvaluatorRequest]) (*connect_go.Response[acs.CreateRegexEvaluatorResponse], error)
- func (UnimplementedAcsHandler) CreateRule(context.Context, *connect_go.Request[acs.CreateRuleRequest]) (*connect_go.Response[acs.CreateRuleResponse], error)
- func (UnimplementedAcsHandler) CreateScript(context.Context, *connect_go.Request[acs.CreateScriptRequest]) (*connect_go.Response[acs.CreateScriptResponse], error)
- func (UnimplementedAcsHandler) DeleteRule(context.Context, *connect_go.Request[acs.DeleteRuleRequest]) (*connect_go.Response[acs.DeleteRuleResponse], error)
- func (UnimplementedAcsHandler) GetResponses(context.Context, *connect_go.Request[acs.GetResponsesRequest]) (*connect_go.Response[acs.GetResponsesResponse], error)
- func (UnimplementedAcsHandler) GetScript(context.Context, *connect_go.Request[acs.GetScriptRequest]) (*connect_go.Response[acs.GetScriptResponse], error)
- func (UnimplementedAcsHandler) GetScriptById(context.Context, *connect_go.Request[acs.GetScriptByIdRequest]) (*connect_go.Response[acs.GetScriptByIdResponse], error)
- func (UnimplementedAcsHandler) ListRegexEvaluators(context.Context, *connect_go.Request[acs.ListRegexEvaluatorsRequest]) (*connect_go.Response[acs.ListRegexEvaluatorsResponse], error)
- func (UnimplementedAcsHandler) ListRules(context.Context, *connect_go.Request[acs.ListRulesRequest]) (*connect_go.Response[acs.ListRulesResponse], error)
- func (UnimplementedAcsHandler) ListScripts(context.Context, *connect_go.Request[acs.ListScriptsRequest], ...) error
- func (UnimplementedAcsHandler) SaveResponses(context.Context, *connect_go.Request[acs.SaveResponsesRequest]) (*connect_go.Response[acs.SaveResponsesResponse], error)
- func (UnimplementedAcsHandler) UpdateRegexEvaluator(context.Context, *connect_go.Request[acs.UpdateRegexEvaluatorRequest]) (*connect_go.Response[acs.UpdateRegexEvaluatorResponse], error)
- func (UnimplementedAcsHandler) UpdateRules(context.Context, *connect_go.Request[acs.UpdateRulesRequest]) (*connect_go.Response[acs.UpdateRulesResponse], error)
- func (UnimplementedAcsHandler) UpdateScript(context.Context, *connect_go.Request[acs.UpdateScriptRequest]) (*connect_go.Response[acs.UpdateScriptResponse], error)
Constants ¶
const ( // AcsCreateScriptProcedure is the fully-qualified name of the Acs's CreateScript RPC. AcsCreateScriptProcedure = "/api.v1alpha1.acs.Acs/CreateScript" // AcsUpdateScriptProcedure is the fully-qualified name of the Acs's UpdateScript RPC. AcsUpdateScriptProcedure = "/api.v1alpha1.acs.Acs/UpdateScript" // AcsGetScriptByIdProcedure is the fully-qualified name of the Acs's GetScriptById RPC. AcsGetScriptByIdProcedure = "/api.v1alpha1.acs.Acs/GetScriptById" // AcsListScriptsProcedure is the fully-qualified name of the Acs's ListScripts RPC. AcsListScriptsProcedure = "/api.v1alpha1.acs.Acs/ListScripts" // AcsSaveResponsesProcedure is the fully-qualified name of the Acs's SaveResponses RPC. AcsSaveResponsesProcedure = "/api.v1alpha1.acs.Acs/SaveResponses" // AcsGetResponsesProcedure is the fully-qualified name of the Acs's GetResponses RPC. AcsGetResponsesProcedure = "/api.v1alpha1.acs.Acs/GetResponses" // AcsCreateRuleProcedure is the fully-qualified name of the Acs's CreateRule RPC. AcsCreateRuleProcedure = "/api.v1alpha1.acs.Acs/CreateRule" // AcsUpdateRulesProcedure is the fully-qualified name of the Acs's UpdateRules RPC. AcsUpdateRulesProcedure = "/api.v1alpha1.acs.Acs/UpdateRules" // AcsListRulesProcedure is the fully-qualified name of the Acs's ListRules RPC. AcsListRulesProcedure = "/api.v1alpha1.acs.Acs/ListRules" // AcsCreateRegexEvaluatorProcedure is the fully-qualified name of the Acs's CreateRegexEvaluator // RPC. AcsCreateRegexEvaluatorProcedure = "/api.v1alpha1.acs.Acs/CreateRegexEvaluator" // AcsUpdateRegexEvaluatorProcedure is the fully-qualified name of the Acs's UpdateRegexEvaluator // RPC. AcsUpdateRegexEvaluatorProcedure = "/api.v1alpha1.acs.Acs/UpdateRegexEvaluator" // AcsListRegexEvaluatorsProcedure is the fully-qualified name of the Acs's ListRegexEvaluators RPC. AcsListRegexEvaluatorsProcedure = "/api.v1alpha1.acs.Acs/ListRegexEvaluators" // AcsDeleteRuleProcedure is the fully-qualified name of the Acs's DeleteRule RPC. AcsDeleteRuleProcedure = "/api.v1alpha1.acs.Acs/DeleteRule" // AcsGetScriptProcedure is the fully-qualified name of the Acs's GetScript RPC. AcsGetScriptProcedure = "/api.v1alpha1.acs.Acs/GetScript" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// AcsName is the fully-qualified name of the Acs service.
AcsName = "api.v1alpha1.acs.Acs"
)
Variables ¶
This section is empty.
Functions ¶
func NewAcsHandler ¶
func NewAcsHandler(svc AcsHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewAcsHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type AcsClient ¶
type AcsClient interface { CreateScript(context.Context, *connect_go.Request[acs.CreateScriptRequest]) (*connect_go.Response[acs.CreateScriptResponse], error) UpdateScript(context.Context, *connect_go.Request[acs.UpdateScriptRequest]) (*connect_go.Response[acs.UpdateScriptResponse], error) GetScriptById(context.Context, *connect_go.Request[acs.GetScriptByIdRequest]) (*connect_go.Response[acs.GetScriptByIdResponse], error) ListScripts(context.Context, *connect_go.Request[acs.ListScriptsRequest]) (*connect_go.ServerStreamForClient[acs.ScriptDetails], error) SaveResponses(context.Context, *connect_go.Request[acs.SaveResponsesRequest]) (*connect_go.Response[acs.SaveResponsesResponse], error) GetResponses(context.Context, *connect_go.Request[acs.GetResponsesRequest]) (*connect_go.Response[acs.GetResponsesResponse], error) CreateRule(context.Context, *connect_go.Request[acs.CreateRuleRequest]) (*connect_go.Response[acs.CreateRuleResponse], error) UpdateRules(context.Context, *connect_go.Request[acs.UpdateRulesRequest]) (*connect_go.Response[acs.UpdateRulesResponse], error) ListRules(context.Context, *connect_go.Request[acs.ListRulesRequest]) (*connect_go.Response[acs.ListRulesResponse], error) CreateRegexEvaluator(context.Context, *connect_go.Request[acs.CreateRegexEvaluatorRequest]) (*connect_go.Response[acs.CreateRegexEvaluatorResponse], error) UpdateRegexEvaluator(context.Context, *connect_go.Request[acs.UpdateRegexEvaluatorRequest]) (*connect_go.Response[acs.UpdateRegexEvaluatorResponse], error) ListRegexEvaluators(context.Context, *connect_go.Request[acs.ListRegexEvaluatorsRequest]) (*connect_go.Response[acs.ListRegexEvaluatorsResponse], error) DeleteRule(context.Context, *connect_go.Request[acs.DeleteRuleRequest]) (*connect_go.Response[acs.DeleteRuleResponse], error) GetScript(context.Context, *connect_go.Request[acs.GetScriptRequest]) (*connect_go.Response[acs.GetScriptResponse], error) }
AcsClient is a client for the api.v1alpha1.acs.Acs service.
func NewAcsClient ¶
func NewAcsClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AcsClient
NewAcsClient constructs a client for the api.v1alpha1.acs.Acs service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type AcsHandler ¶
type AcsHandler interface { CreateScript(context.Context, *connect_go.Request[acs.CreateScriptRequest]) (*connect_go.Response[acs.CreateScriptResponse], error) UpdateScript(context.Context, *connect_go.Request[acs.UpdateScriptRequest]) (*connect_go.Response[acs.UpdateScriptResponse], error) GetScriptById(context.Context, *connect_go.Request[acs.GetScriptByIdRequest]) (*connect_go.Response[acs.GetScriptByIdResponse], error) ListScripts(context.Context, *connect_go.Request[acs.ListScriptsRequest], *connect_go.ServerStream[acs.ScriptDetails]) error SaveResponses(context.Context, *connect_go.Request[acs.SaveResponsesRequest]) (*connect_go.Response[acs.SaveResponsesResponse], error) GetResponses(context.Context, *connect_go.Request[acs.GetResponsesRequest]) (*connect_go.Response[acs.GetResponsesResponse], error) CreateRule(context.Context, *connect_go.Request[acs.CreateRuleRequest]) (*connect_go.Response[acs.CreateRuleResponse], error) UpdateRules(context.Context, *connect_go.Request[acs.UpdateRulesRequest]) (*connect_go.Response[acs.UpdateRulesResponse], error) ListRules(context.Context, *connect_go.Request[acs.ListRulesRequest]) (*connect_go.Response[acs.ListRulesResponse], error) CreateRegexEvaluator(context.Context, *connect_go.Request[acs.CreateRegexEvaluatorRequest]) (*connect_go.Response[acs.CreateRegexEvaluatorResponse], error) UpdateRegexEvaluator(context.Context, *connect_go.Request[acs.UpdateRegexEvaluatorRequest]) (*connect_go.Response[acs.UpdateRegexEvaluatorResponse], error) ListRegexEvaluators(context.Context, *connect_go.Request[acs.ListRegexEvaluatorsRequest]) (*connect_go.Response[acs.ListRegexEvaluatorsResponse], error) DeleteRule(context.Context, *connect_go.Request[acs.DeleteRuleRequest]) (*connect_go.Response[acs.DeleteRuleResponse], error) GetScript(context.Context, *connect_go.Request[acs.GetScriptRequest]) (*connect_go.Response[acs.GetScriptResponse], error) }
AcsHandler is an implementation of the api.v1alpha1.acs.Acs service.
type UnimplementedAcsHandler ¶
type UnimplementedAcsHandler struct{}
UnimplementedAcsHandler returns CodeUnimplemented from all methods.
func (UnimplementedAcsHandler) CreateRegexEvaluator ¶
func (UnimplementedAcsHandler) CreateRegexEvaluator(context.Context, *connect_go.Request[acs.CreateRegexEvaluatorRequest]) (*connect_go.Response[acs.CreateRegexEvaluatorResponse], error)
func (UnimplementedAcsHandler) CreateRule ¶
func (UnimplementedAcsHandler) CreateRule(context.Context, *connect_go.Request[acs.CreateRuleRequest]) (*connect_go.Response[acs.CreateRuleResponse], error)
func (UnimplementedAcsHandler) CreateScript ¶
func (UnimplementedAcsHandler) CreateScript(context.Context, *connect_go.Request[acs.CreateScriptRequest]) (*connect_go.Response[acs.CreateScriptResponse], error)
func (UnimplementedAcsHandler) DeleteRule ¶
func (UnimplementedAcsHandler) DeleteRule(context.Context, *connect_go.Request[acs.DeleteRuleRequest]) (*connect_go.Response[acs.DeleteRuleResponse], error)
func (UnimplementedAcsHandler) GetResponses ¶
func (UnimplementedAcsHandler) GetResponses(context.Context, *connect_go.Request[acs.GetResponsesRequest]) (*connect_go.Response[acs.GetResponsesResponse], error)
func (UnimplementedAcsHandler) GetScript ¶
func (UnimplementedAcsHandler) GetScript(context.Context, *connect_go.Request[acs.GetScriptRequest]) (*connect_go.Response[acs.GetScriptResponse], error)
func (UnimplementedAcsHandler) GetScriptById ¶
func (UnimplementedAcsHandler) GetScriptById(context.Context, *connect_go.Request[acs.GetScriptByIdRequest]) (*connect_go.Response[acs.GetScriptByIdResponse], error)
func (UnimplementedAcsHandler) ListRegexEvaluators ¶
func (UnimplementedAcsHandler) ListRegexEvaluators(context.Context, *connect_go.Request[acs.ListRegexEvaluatorsRequest]) (*connect_go.Response[acs.ListRegexEvaluatorsResponse], error)
func (UnimplementedAcsHandler) ListRules ¶
func (UnimplementedAcsHandler) ListRules(context.Context, *connect_go.Request[acs.ListRulesRequest]) (*connect_go.Response[acs.ListRulesResponse], error)
func (UnimplementedAcsHandler) ListScripts ¶
func (UnimplementedAcsHandler) ListScripts(context.Context, *connect_go.Request[acs.ListScriptsRequest], *connect_go.ServerStream[acs.ScriptDetails]) error
func (UnimplementedAcsHandler) SaveResponses ¶
func (UnimplementedAcsHandler) SaveResponses(context.Context, *connect_go.Request[acs.SaveResponsesRequest]) (*connect_go.Response[acs.SaveResponsesResponse], error)
func (UnimplementedAcsHandler) UpdateRegexEvaluator ¶
func (UnimplementedAcsHandler) UpdateRegexEvaluator(context.Context, *connect_go.Request[acs.UpdateRegexEvaluatorRequest]) (*connect_go.Response[acs.UpdateRegexEvaluatorResponse], error)
func (UnimplementedAcsHandler) UpdateRules ¶
func (UnimplementedAcsHandler) UpdateRules(context.Context, *connect_go.Request[acs.UpdateRulesRequest]) (*connect_go.Response[acs.UpdateRulesResponse], error)
func (UnimplementedAcsHandler) UpdateScript ¶
func (UnimplementedAcsHandler) UpdateScript(context.Context, *connect_go.Request[acs.UpdateScriptRequest]) (*connect_go.Response[acs.UpdateScriptResponse], error)