callback

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: GPL-3.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ClientCallback_Invalidate_FullMethodName = "/callback.ClientCallback/Invalidate"
)

Variables

View Source
var ClientCallback_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "callback.ClientCallback",
	HandlerType: (*ClientCallbackServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Invalidate",
			Handler:    _ClientCallback_Invalidate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/callback/callback.proto",
}

ClientCallback_ServiceDesc is the grpc.ServiceDesc for ClientCallback 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_api_callback_callback_proto protoreflect.FileDescriptor

Functions

func RegisterClientCallbackServer

func RegisterClientCallbackServer(s grpc.ServiceRegistrar, srv ClientCallbackServer)

Types

type ClientCallbackClient

type ClientCallbackClient interface {
	Invalidate(ctx context.Context, in *InvalidateRequest, opts ...grpc.CallOption) (*InvalidateResponse, error)
}

ClientCallbackClient is the client API for ClientCallback 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.

ClientCallback service (runs on client)

type ClientCallbackServer

type ClientCallbackServer interface {
	Invalidate(context.Context, *InvalidateRequest) (*InvalidateResponse, error)
	// contains filtered or unexported methods
}

ClientCallbackServer is the server API for ClientCallback service. All implementations must embed UnimplementedClientCallbackServer for forward compatibility.

ClientCallback service (runs on client)

type InvalidateRequest

type InvalidateRequest struct {
	Fid        *fileserver.FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
	NewVersion uint64          `protobuf:"varint,2,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"`
	// contains filtered or unexported fields
}

Callback messages for cache invalidation

func (*InvalidateRequest) Descriptor deprecated

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

Deprecated: Use InvalidateRequest.ProtoReflect.Descriptor instead.

func (*InvalidateRequest) GetFid

func (x *InvalidateRequest) GetFid() *fileserver.FID

func (*InvalidateRequest) GetNewVersion

func (x *InvalidateRequest) GetNewVersion() uint64

func (*InvalidateRequest) ProtoMessage

func (*InvalidateRequest) ProtoMessage()

func (*InvalidateRequest) ProtoReflect

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

func (*InvalidateRequest) Reset

func (x *InvalidateRequest) Reset()

func (*InvalidateRequest) String

func (x *InvalidateRequest) String() string

type InvalidateResponse

type InvalidateResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*InvalidateResponse) Descriptor deprecated

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

Deprecated: Use InvalidateResponse.ProtoReflect.Descriptor instead.

func (*InvalidateResponse) GetSuccess

func (x *InvalidateResponse) GetSuccess() bool

func (*InvalidateResponse) ProtoMessage

func (*InvalidateResponse) ProtoMessage()

func (*InvalidateResponse) ProtoReflect

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

func (*InvalidateResponse) Reset

func (x *InvalidateResponse) Reset()

func (*InvalidateResponse) String

func (x *InvalidateResponse) String() string

type UnimplementedClientCallbackServer

type UnimplementedClientCallbackServer struct{}

UnimplementedClientCallbackServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedClientCallbackServer) Invalidate

type UnsafeClientCallbackServer

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

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

Jump to

Keyboard shortcuts

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