✨ List related relatives
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.4.0
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v5.27.1
|
||||
// source: realm.proto
|
||||
|
||||
@ -15,8 +15,8 @@ import (
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.62.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion8
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Realm_ListCommunityRealm_FullMethodName = "/proto.Realm/ListCommunityRealm"
|
||||
@ -121,7 +121,7 @@ func (c *realmClient) CheckRealmMemberPerm(ctx context.Context, in *CheckRealmPe
|
||||
|
||||
// RealmServer is the server API for Realm service.
|
||||
// All implementations must embed UnimplementedRealmServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type RealmServer interface {
|
||||
ListCommunityRealm(context.Context, *ListRealmRequest) (*ListRealmResponse, error)
|
||||
ListAvailableRealm(context.Context, *LookupUserRealmRequest) (*ListRealmResponse, error)
|
||||
@ -133,9 +133,12 @@ type RealmServer interface {
|
||||
mustEmbedUnimplementedRealmServer()
|
||||
}
|
||||
|
||||
// UnimplementedRealmServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedRealmServer struct {
|
||||
}
|
||||
// UnimplementedRealmServer 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.
|
||||
type UnimplementedRealmServer struct{}
|
||||
|
||||
func (UnimplementedRealmServer) ListCommunityRealm(context.Context, *ListRealmRequest) (*ListRealmResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListCommunityRealm not implemented")
|
||||
@ -159,6 +162,7 @@ func (UnimplementedRealmServer) CheckRealmMemberPerm(context.Context, *CheckReal
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CheckRealmMemberPerm not implemented")
|
||||
}
|
||||
func (UnimplementedRealmServer) mustEmbedUnimplementedRealmServer() {}
|
||||
func (UnimplementedRealmServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeRealmServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to RealmServer will
|
||||
@ -168,6 +172,13 @@ type UnsafeRealmServer interface {
|
||||
}
|
||||
|
||||
func RegisterRealmServer(s grpc.ServiceRegistrar, srv RealmServer) {
|
||||
// If the following call pancis, it indicates UnimplementedRealmServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&Realm_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user