v1alpha1

package
v0.0.0-...-17f58c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_proto_v1alpha1_new_collector_template_proto protoreflect.FileDescriptor
View Source
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 (*CreateEventOccurrenceRequest) Reset

func (x *CreateEventOccurrenceRequest) Reset()

func (*CreateEventOccurrenceRequest) 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 (*CreateEventOccurrenceResponse) ProtoMessage

func (*CreateEventOccurrenceResponse) ProtoMessage()

func (*CreateEventOccurrenceResponse) ProtoReflect

func (*CreateEventOccurrenceResponse) Reset

func (x *CreateEventOccurrenceResponse) Reset()

func (*CreateEventOccurrenceResponse) 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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL