Documentation ¶
Overview ¶
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterNewCollectorTemplateHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNewCollectorTemplateHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NewCollectorTemplateClient) error
- func RegisterNewCollectorTemplateHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNewCollectorTemplateHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NewCollectorTemplateServer) error
- func RegisterNewCollectorTemplateServer(s grpc.ServiceRegistrar, srv NewCollectorTemplateServer)
- type CreateEventOccurrenceRequest
- func (*CreateEventOccurrenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEventOccurrenceRequest) GetName() string
- func (*CreateEventOccurrenceRequest) ProtoMessage()
- func (x *CreateEventOccurrenceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEventOccurrenceRequest) Reset()
- func (x *CreateEventOccurrenceRequest) String() string
- type CreateEventOccurrenceResponse
- func (*CreateEventOccurrenceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEventOccurrenceResponse) GetId() string
- func (*CreateEventOccurrenceResponse) ProtoMessage()
- func (x *CreateEventOccurrenceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateEventOccurrenceResponse) Reset()
- func (x *CreateEventOccurrenceResponse) String() string
- type NewCollectorTemplateClient
- type NewCollectorTemplateServer
- type UnimplementedNewCollectorTemplateServer
- type UnsafeNewCollectorTemplateServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_v1alpha1_new_collector_template_proto protoreflect.FileDescriptor
var NewCollectorTemplate_ServiceDesc = grpc.ServiceDesc{ ServiceName: "new_collector_template.v1alpha1.NewCollectorTemplate", HandlerType: (*NewCollectorTemplateServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateEventOccurrence", Handler: _NewCollectorTemplate_CreateEventOccurrence_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1alpha1/new-collector-template.proto", }
NewCollectorTemplate_ServiceDesc is the grpc.ServiceDesc for NewCollectorTemplate service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNewCollectorTemplateHandler ¶
func RegisterNewCollectorTemplateHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNewCollectorTemplateHandler registers the http handlers for service NewCollectorTemplate to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNewCollectorTemplateHandlerClient ¶
func RegisterNewCollectorTemplateHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NewCollectorTemplateClient) error
RegisterNewCollectorTemplateHandlerClient registers the http handlers for service NewCollectorTemplate to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NewCollectorTemplateClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NewCollectorTemplateClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NewCollectorTemplateClient" to call the correct interceptors.
func RegisterNewCollectorTemplateHandlerFromEndpoint ¶
func RegisterNewCollectorTemplateHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNewCollectorTemplateHandlerFromEndpoint is same as RegisterNewCollectorTemplateHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNewCollectorTemplateHandlerServer ¶
func RegisterNewCollectorTemplateHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NewCollectorTemplateServer) error
RegisterNewCollectorTemplateHandlerServer registers the http handlers for service NewCollectorTemplate to "mux". UnaryRPC :call NewCollectorTemplateServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNewCollectorTemplateHandlerFromEndpoint instead.
func RegisterNewCollectorTemplateServer ¶
func RegisterNewCollectorTemplateServer(s grpc.ServiceRegistrar, srv NewCollectorTemplateServer)
Types ¶
type CreateEventOccurrenceRequest ¶
type CreateEventOccurrenceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateEventOccurrenceRequest) Descriptor
deprecated
func (*CreateEventOccurrenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEventOccurrenceRequest.ProtoReflect.Descriptor instead.
func (*CreateEventOccurrenceRequest) GetName ¶
func (x *CreateEventOccurrenceRequest) GetName() string
func (*CreateEventOccurrenceRequest) ProtoMessage ¶
func (*CreateEventOccurrenceRequest) ProtoMessage()
func (*CreateEventOccurrenceRequest) ProtoReflect ¶
func (x *CreateEventOccurrenceRequest) ProtoReflect() protoreflect.Message
func (*CreateEventOccurrenceRequest) Reset ¶
func (x *CreateEventOccurrenceRequest) Reset()
func (*CreateEventOccurrenceRequest) String ¶
func (x *CreateEventOccurrenceRequest) String() string
type CreateEventOccurrenceResponse ¶
type CreateEventOccurrenceResponse struct { Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateEventOccurrenceResponse) Descriptor
deprecated
func (*CreateEventOccurrenceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateEventOccurrenceResponse.ProtoReflect.Descriptor instead.
func (*CreateEventOccurrenceResponse) GetId ¶
func (x *CreateEventOccurrenceResponse) GetId() string
func (*CreateEventOccurrenceResponse) ProtoMessage ¶
func (*CreateEventOccurrenceResponse) ProtoMessage()
func (*CreateEventOccurrenceResponse) ProtoReflect ¶
func (x *CreateEventOccurrenceResponse) ProtoReflect() protoreflect.Message
func (*CreateEventOccurrenceResponse) Reset ¶
func (x *CreateEventOccurrenceResponse) Reset()
func (*CreateEventOccurrenceResponse) String ¶
func (x *CreateEventOccurrenceResponse) String() string
type NewCollectorTemplateClient ¶
type NewCollectorTemplateClient interface {
CreateEventOccurrence(ctx context.Context, in *CreateEventOccurrenceRequest, opts ...grpc.CallOption) (*CreateEventOccurrenceResponse, error)
}
NewCollectorTemplateClient is the client API for NewCollectorTemplate service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNewCollectorTemplateClient ¶
func NewNewCollectorTemplateClient(cc grpc.ClientConnInterface) NewCollectorTemplateClient
type NewCollectorTemplateServer ¶
type NewCollectorTemplateServer interface {
CreateEventOccurrence(context.Context, *CreateEventOccurrenceRequest) (*CreateEventOccurrenceResponse, error)
}
NewCollectorTemplateServer is the server API for NewCollectorTemplate service. All implementations should embed UnimplementedNewCollectorTemplateServer for forward compatibility
type UnimplementedNewCollectorTemplateServer ¶
type UnimplementedNewCollectorTemplateServer struct { }
UnimplementedNewCollectorTemplateServer should be embedded to have forward compatible implementations.
func (UnimplementedNewCollectorTemplateServer) CreateEventOccurrence ¶
func (UnimplementedNewCollectorTemplateServer) CreateEventOccurrence(context.Context, *CreateEventOccurrenceRequest) (*CreateEventOccurrenceResponse, error)
type UnsafeNewCollectorTemplateServer ¶
type UnsafeNewCollectorTemplateServer interface {
// contains filtered or unexported methods
}
UnsafeNewCollectorTemplateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NewCollectorTemplateServer will result in compilation errors.