fseventsrc

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package fseventsrc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var FSEventSource_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "autokitteh.fseventsrc.FSEventSource",
	HandlerType: (*FSEventSourceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Bind",
			Handler:    _FSEventSource_Bind_Handler,
		},
		{
			MethodName: "Unbind",
			Handler:    _FSEventSource_Unbind_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "fseventsrc/src.proto",
}

FSEventSource_ServiceDesc is the grpc.ServiceDesc for FSEventSource service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_fseventsrc_src_proto protoreflect.FileDescriptor

Functions

func RegisterFSEventSourceHandler

func RegisterFSEventSourceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFSEventSourceHandler registers the http handlers for service FSEventSource to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFSEventSourceHandlerClient

func RegisterFSEventSourceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FSEventSourceClient) error

RegisterFSEventSourceHandlerClient registers the http handlers for service FSEventSource to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FSEventSourceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FSEventSourceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FSEventSourceClient" to call the correct interceptors.

func RegisterFSEventSourceHandlerFromEndpoint

func RegisterFSEventSourceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFSEventSourceHandlerFromEndpoint is same as RegisterFSEventSourceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFSEventSourceHandlerServer

func RegisterFSEventSourceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FSEventSourceServer) error

RegisterFSEventSourceHandlerServer registers the http handlers for service FSEventSource to "mux". UnaryRPC :call FSEventSourceServer 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 RegisterFSEventSourceHandlerFromEndpoint instead.

func RegisterFSEventSourceServer

func RegisterFSEventSourceServer(s grpc.ServiceRegistrar, srv FSEventSourceServer)

Types

type BindRequest

type BindRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Path      string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Ops       *Ops   `protobuf:"bytes,4,opt,name=ops,proto3" json:"ops,omitempty"`
	// contains filtered or unexported fields
}

func (*BindRequest) Descriptor deprecated

func (*BindRequest) Descriptor() ([]byte, []int)

Deprecated: Use BindRequest.ProtoReflect.Descriptor instead.

func (*BindRequest) GetName

func (x *BindRequest) GetName() string

func (*BindRequest) GetOps

func (x *BindRequest) GetOps() *Ops

func (*BindRequest) GetPath

func (x *BindRequest) GetPath() string

func (*BindRequest) GetProjectId

func (x *BindRequest) GetProjectId() string

func (*BindRequest) ProtoMessage

func (*BindRequest) ProtoMessage()

func (*BindRequest) ProtoReflect

func (x *BindRequest) ProtoReflect() protoreflect.Message

func (*BindRequest) Reset

func (x *BindRequest) Reset()

func (*BindRequest) String

func (x *BindRequest) String() string

func (*BindRequest) Validate

func (m *BindRequest) Validate() error

Validate checks the field values on BindRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type BindRequestValidationError

type BindRequestValidationError struct {
	// contains filtered or unexported fields
}

BindRequestValidationError is the validation error returned by BindRequest.Validate if the designated constraints aren't met.

func (BindRequestValidationError) Cause

Cause function returns cause value.

func (BindRequestValidationError) Error

Error satisfies the builtin error interface

func (BindRequestValidationError) ErrorName

func (e BindRequestValidationError) ErrorName() string

ErrorName returns error name.

func (BindRequestValidationError) Field

Field function returns field value.

func (BindRequestValidationError) Key

Key function returns key value.

func (BindRequestValidationError) Reason

Reason function returns reason value.

type BindResponse

type BindResponse struct {
	// contains filtered or unexported fields
}

func (*BindResponse) Descriptor deprecated

func (*BindResponse) Descriptor() ([]byte, []int)

Deprecated: Use BindResponse.ProtoReflect.Descriptor instead.

func (*BindResponse) ProtoMessage

func (*BindResponse) ProtoMessage()

func (*BindResponse) ProtoReflect

func (x *BindResponse) ProtoReflect() protoreflect.Message

func (*BindResponse) Reset

func (x *BindResponse) Reset()

func (*BindResponse) String

func (x *BindResponse) String() string

func (*BindResponse) Validate

func (m *BindResponse) Validate() error

Validate checks the field values on BindResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type BindResponseValidationError

type BindResponseValidationError struct {
	// contains filtered or unexported fields
}

BindResponseValidationError is the validation error returned by BindResponse.Validate if the designated constraints aren't met.

func (BindResponseValidationError) Cause

Cause function returns cause value.

func (BindResponseValidationError) Error

Error satisfies the builtin error interface

func (BindResponseValidationError) ErrorName

func (e BindResponseValidationError) ErrorName() string

ErrorName returns error name.

func (BindResponseValidationError) Field

Field function returns field value.

func (BindResponseValidationError) Key

Key function returns key value.

func (BindResponseValidationError) Reason

Reason function returns reason value.

type FSEventSourceClient

type FSEventSourceClient interface {
	Bind(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*BindResponse, error)
	Unbind(ctx context.Context, in *UnbindRequest, opts ...grpc.CallOption) (*UnbindResponse, error)
}

FSEventSourceClient is the client API for FSEventSource 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 FSEventSourceServer

type FSEventSourceServer interface {
	Bind(context.Context, *BindRequest) (*BindResponse, error)
	Unbind(context.Context, *UnbindRequest) (*UnbindResponse, error)
	// contains filtered or unexported methods
}

FSEventSourceServer is the server API for FSEventSource service. All implementations must embed UnimplementedFSEventSourceServer for forward compatibility

type Ops

type Ops struct {
	Create bool `protobuf:"varint,1,opt,name=create,proto3" json:"create,omitempty"`
	Write  bool `protobuf:"varint,2,opt,name=write,proto3" json:"write,omitempty"`
	Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"`
	Rename bool `protobuf:"varint,4,opt,name=rename,proto3" json:"rename,omitempty"`
	Chmod  bool `protobuf:"varint,5,opt,name=chmod,proto3" json:"chmod,omitempty"`
	// contains filtered or unexported fields
}

func (*Ops) Descriptor deprecated

func (*Ops) Descriptor() ([]byte, []int)

Deprecated: Use Ops.ProtoReflect.Descriptor instead.

func (*Ops) GetChmod

func (x *Ops) GetChmod() bool

func (*Ops) GetCreate

func (x *Ops) GetCreate() bool

func (*Ops) GetRemove

func (x *Ops) GetRemove() bool

func (*Ops) GetRename

func (x *Ops) GetRename() bool

func (*Ops) GetWrite

func (x *Ops) GetWrite() bool

func (*Ops) ProtoMessage

func (*Ops) ProtoMessage()

func (*Ops) ProtoReflect

func (x *Ops) ProtoReflect() protoreflect.Message

func (*Ops) Reset

func (x *Ops) Reset()

func (*Ops) String

func (x *Ops) String() string

func (*Ops) Validate

func (m *Ops) Validate() error

Validate checks the field values on Ops with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OpsValidationError

type OpsValidationError struct {
	// contains filtered or unexported fields
}

OpsValidationError is the validation error returned by Ops.Validate if the designated constraints aren't met.

func (OpsValidationError) Cause

func (e OpsValidationError) Cause() error

Cause function returns cause value.

func (OpsValidationError) Error

func (e OpsValidationError) Error() string

Error satisfies the builtin error interface

func (OpsValidationError) ErrorName

func (e OpsValidationError) ErrorName() string

ErrorName returns error name.

func (OpsValidationError) Field

func (e OpsValidationError) Field() string

Field function returns field value.

func (OpsValidationError) Key

func (e OpsValidationError) Key() bool

Key function returns key value.

func (OpsValidationError) Reason

func (e OpsValidationError) Reason() string

Reason function returns reason value.

type UnbindRequest

type UnbindRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UnbindRequest) Descriptor deprecated

func (*UnbindRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnbindRequest.ProtoReflect.Descriptor instead.

func (*UnbindRequest) GetName

func (x *UnbindRequest) GetName() string

func (*UnbindRequest) GetProjectId

func (x *UnbindRequest) GetProjectId() string

func (*UnbindRequest) ProtoMessage

func (*UnbindRequest) ProtoMessage()

func (*UnbindRequest) ProtoReflect

func (x *UnbindRequest) ProtoReflect() protoreflect.Message

func (*UnbindRequest) Reset

func (x *UnbindRequest) Reset()

func (*UnbindRequest) String

func (x *UnbindRequest) String() string

func (*UnbindRequest) Validate

func (m *UnbindRequest) Validate() error

Validate checks the field values on UnbindRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UnbindRequestValidationError

type UnbindRequestValidationError struct {
	// contains filtered or unexported fields
}

UnbindRequestValidationError is the validation error returned by UnbindRequest.Validate if the designated constraints aren't met.

func (UnbindRequestValidationError) Cause

Cause function returns cause value.

func (UnbindRequestValidationError) Error

Error satisfies the builtin error interface

func (UnbindRequestValidationError) ErrorName

func (e UnbindRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UnbindRequestValidationError) Field

Field function returns field value.

func (UnbindRequestValidationError) Key

Key function returns key value.

func (UnbindRequestValidationError) Reason

Reason function returns reason value.

type UnbindResponse

type UnbindResponse struct {
	// contains filtered or unexported fields
}

func (*UnbindResponse) Descriptor deprecated

func (*UnbindResponse) Descriptor() ([]byte, []int)

Deprecated: Use UnbindResponse.ProtoReflect.Descriptor instead.

func (*UnbindResponse) ProtoMessage

func (*UnbindResponse) ProtoMessage()

func (*UnbindResponse) ProtoReflect

func (x *UnbindResponse) ProtoReflect() protoreflect.Message

func (*UnbindResponse) Reset

func (x *UnbindResponse) Reset()

func (*UnbindResponse) String

func (x *UnbindResponse) String() string

func (*UnbindResponse) Validate

func (m *UnbindResponse) Validate() error

Validate checks the field values on UnbindResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UnbindResponseValidationError

type UnbindResponseValidationError struct {
	// contains filtered or unexported fields
}

UnbindResponseValidationError is the validation error returned by UnbindResponse.Validate if the designated constraints aren't met.

func (UnbindResponseValidationError) Cause

Cause function returns cause value.

func (UnbindResponseValidationError) Error

Error satisfies the builtin error interface

func (UnbindResponseValidationError) ErrorName

func (e UnbindResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UnbindResponseValidationError) Field

Field function returns field value.

func (UnbindResponseValidationError) Key

Key function returns key value.

func (UnbindResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedFSEventSourceServer

type UnimplementedFSEventSourceServer struct {
}

UnimplementedFSEventSourceServer must be embedded to have forward compatible implementations.

func (UnimplementedFSEventSourceServer) Bind

func (UnimplementedFSEventSourceServer) Unbind

type UnsafeFSEventSourceServer

type UnsafeFSEventSourceServer interface {
	// contains filtered or unexported methods
}

UnsafeFSEventSourceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FSEventSourceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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