Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
- type AdminServiceClient
- type AdminServiceServer
- type ClearCacheRequest
- type ClearCacheRequest_builder
- type ClearCacheResponse
- type ClearCacheResponse_builder
- type UnimplementedAdminServiceServer
- type UnsafeAdminServiceServer
Constants ¶
const (
AdminService_ClearCache_FullMethodName = "/mcpany.admin.v1.AdminService/ClearCache"
)
Variables ¶
var AdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mcpany.admin.v1.AdminService", HandlerType: (*AdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ClearCache", Handler: _AdminService_ClearCache_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/admin/v1/admin.proto", }
AdminService_ServiceDesc is the grpc.ServiceDesc for AdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_admin_v1_admin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminServiceServer ¶
func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
Types ¶
type AdminServiceClient ¶
type AdminServiceClient interface {
// ClearCache clears all cached data in the server.
ClearCache(ctx context.Context, in *ClearCacheRequest, opts ...grpc.CallOption) (*ClearCacheResponse, error)
}
AdminServiceClient is the client API for AdminService 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.
AdminService provides administrative operations for the MCP Any server.
func NewAdminServiceClient ¶
func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient
type AdminServiceServer ¶
type AdminServiceServer interface {
// ClearCache clears all cached data in the server.
ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error)
// contains filtered or unexported methods
}
AdminServiceServer is the server API for AdminService service. All implementations must embed UnimplementedAdminServiceServer for forward compatibility.
AdminService provides administrative operations for the MCP Any server.
type ClearCacheRequest ¶
type ClearCacheRequest struct {
// contains filtered or unexported fields
}
func (*ClearCacheRequest) ProtoMessage ¶
func (*ClearCacheRequest) ProtoMessage()
func (*ClearCacheRequest) ProtoReflect ¶
func (x *ClearCacheRequest) ProtoReflect() protoreflect.Message
func (*ClearCacheRequest) Reset ¶
func (x *ClearCacheRequest) Reset()
func (*ClearCacheRequest) String ¶
func (x *ClearCacheRequest) String() string
type ClearCacheRequest_builder ¶
type ClearCacheRequest_builder struct {
// contains filtered or unexported fields
}
func (ClearCacheRequest_builder) Build ¶
func (b0 ClearCacheRequest_builder) Build() *ClearCacheRequest
type ClearCacheResponse ¶
type ClearCacheResponse struct {
// contains filtered or unexported fields
}
func (*ClearCacheResponse) ProtoMessage ¶
func (*ClearCacheResponse) ProtoMessage()
func (*ClearCacheResponse) ProtoReflect ¶
func (x *ClearCacheResponse) ProtoReflect() protoreflect.Message
func (*ClearCacheResponse) Reset ¶
func (x *ClearCacheResponse) Reset()
func (*ClearCacheResponse) String ¶
func (x *ClearCacheResponse) String() string
type ClearCacheResponse_builder ¶
type ClearCacheResponse_builder struct {
// contains filtered or unexported fields
}
func (ClearCacheResponse_builder) Build ¶
func (b0 ClearCacheResponse_builder) Build() *ClearCacheResponse
type UnimplementedAdminServiceServer ¶
type UnimplementedAdminServiceServer struct{}
UnimplementedAdminServiceServer 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 (UnimplementedAdminServiceServer) ClearCache ¶
func (UnimplementedAdminServiceServer) ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error)
type UnsafeAdminServiceServer ¶
type UnsafeAdminServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServiceServer will result in compilation errors.