proto

package
v0.0.0-...-1e2d5e9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Auth_Authenticate_FullMethodName = "/proto.Auth/Authenticate"
	Auth_CheckPerm_FullMethodName    = "/proto.Auth/CheckPerm"
)
View Source
const (
	Friendships_ListFriendship_FullMethodName = "/proto.Friendships/ListFriendship"
	Friendships_GetFriendship_FullMethodName  = "/proto.Friendships/GetFriendship"
)
View Source
const (
	Realms_ListCommunityRealm_FullMethodName = "/proto.Realms/ListCommunityRealm"
	Realms_ListAvailableRealm_FullMethodName = "/proto.Realms/ListAvailableRealm"
	Realms_ListOwnedRealm_FullMethodName     = "/proto.Realms/ListOwnedRealm"
	Realms_GetRealm_FullMethodName           = "/proto.Realms/GetRealm"
	Realms_ListRealmMember_FullMethodName    = "/proto.Realms/ListRealmMember"
	Realms_GetRealmMember_FullMethodName     = "/proto.Realms/GetRealmMember"
)
View Source
const (
	Notify_NotifyUser_FullMethodName = "/proto.Notify/NotifyUser"
)

Variables

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authenticate",
			Handler:    _Auth_Authenticate_Handler,
		},
		{
			MethodName: "CheckPerm",
			Handler:    _Auth_CheckPerm_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth.proto",
}

Auth_ServiceDesc is the grpc.ServiceDesc for Auth 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_friendships_proto protoreflect.FileDescriptor
View Source
var File_notify_proto protoreflect.FileDescriptor
View Source
var File_realms_proto protoreflect.FileDescriptor
View Source
var Friendships_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Friendships",
	HandlerType: (*FriendshipsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListFriendship",
			Handler:    _Friendships_ListFriendship_Handler,
		},
		{
			MethodName: "GetFriendship",
			Handler:    _Friendships_GetFriendship_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "friendships.proto",
}

Friendships_ServiceDesc is the grpc.ServiceDesc for Friendships 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 Notify_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Notify",
	HandlerType: (*NotifyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NotifyUser",
			Handler:    _Notify_NotifyUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notify.proto",
}

Notify_ServiceDesc is the grpc.ServiceDesc for Notify 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 Realms_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Realms",
	HandlerType: (*RealmsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCommunityRealm",
			Handler:    _Realms_ListCommunityRealm_Handler,
		},
		{
			MethodName: "ListAvailableRealm",
			Handler:    _Realms_ListAvailableRealm_Handler,
		},
		{
			MethodName: "ListOwnedRealm",
			Handler:    _Realms_ListOwnedRealm_Handler,
		},
		{
			MethodName: "GetRealm",
			Handler:    _Realms_GetRealm_Handler,
		},
		{
			MethodName: "ListRealmMember",
			Handler:    _Realms_ListRealmMember_Handler,
		},
		{
			MethodName: "GetRealmMember",
			Handler:    _Realms_GetRealmMember_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "realms.proto",
}

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

Functions

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

func RegisterFriendshipsServer

func RegisterFriendshipsServer(s grpc.ServiceRegistrar, srv FriendshipsServer)

func RegisterNotifyServer

func RegisterNotifyServer(s grpc.ServiceRegistrar, srv NotifyServer)

func RegisterRealmsServer

func RegisterRealmsServer(s grpc.ServiceRegistrar, srv RealmsServer)

Types

type AuthClient

type AuthClient interface {
	Authenticate(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthReply, error)
	CheckPerm(ctx context.Context, in *CheckPermRequest, opts ...grpc.CallOption) (*CheckPermReply, error)
}

AuthClient is the client API for Auth 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.

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthReply

type AuthReply struct {
	IsValid      bool      `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
	AccessToken  *string   `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3,oneof" json:"access_token,omitempty"`
	RefreshToken *string   `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3,oneof" json:"refresh_token,omitempty"`
	Userinfo     *Userinfo `protobuf:"bytes,4,opt,name=userinfo,proto3,oneof" json:"userinfo,omitempty"`
	Permissions  []byte    `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"`
	TicketId     *uint64   `protobuf:"varint,6,opt,name=ticket_id,json=ticketId,proto3,oneof" json:"ticket_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthReply) Descriptor deprecated

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

Deprecated: Use AuthReply.ProtoReflect.Descriptor instead.

func (*AuthReply) GetAccessToken

func (x *AuthReply) GetAccessToken() string

func (*AuthReply) GetIsValid

func (x *AuthReply) GetIsValid() bool

func (*AuthReply) GetPermissions

func (x *AuthReply) GetPermissions() []byte

func (*AuthReply) GetRefreshToken

func (x *AuthReply) GetRefreshToken() string

func (*AuthReply) GetTicketId

func (x *AuthReply) GetTicketId() uint64

func (*AuthReply) GetUserinfo

func (x *AuthReply) GetUserinfo() *Userinfo

func (*AuthReply) ProtoMessage

func (*AuthReply) ProtoMessage()

func (*AuthReply) ProtoReflect

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

func (*AuthReply) Reset

func (x *AuthReply) Reset()

func (*AuthReply) String

func (x *AuthReply) String() string

type AuthRequest

type AuthRequest struct {
	AccessToken  string  `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	RefreshToken *string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3,oneof" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthRequest) Descriptor deprecated

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

Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.

func (*AuthRequest) GetAccessToken

func (x *AuthRequest) GetAccessToken() string

func (*AuthRequest) GetRefreshToken

func (x *AuthRequest) GetRefreshToken() string

func (*AuthRequest) ProtoMessage

func (*AuthRequest) ProtoMessage()

func (*AuthRequest) ProtoReflect

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

func (*AuthRequest) Reset

func (x *AuthRequest) Reset()

func (*AuthRequest) String

func (x *AuthRequest) String() string

type AuthServer

type AuthServer interface {
	Authenticate(context.Context, *AuthRequest) (*AuthReply, error)
	CheckPerm(context.Context, *CheckPermRequest) (*CheckPermReply, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility

type CheckPermReply

type CheckPermReply struct {
	IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckPermReply) Descriptor deprecated

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

Deprecated: Use CheckPermReply.ProtoReflect.Descriptor instead.

func (*CheckPermReply) GetIsValid

func (x *CheckPermReply) GetIsValid() bool

func (*CheckPermReply) ProtoMessage

func (*CheckPermReply) ProtoMessage()

func (*CheckPermReply) ProtoReflect

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

func (*CheckPermReply) Reset

func (x *CheckPermReply) Reset()

func (*CheckPermReply) String

func (x *CheckPermReply) String() string

type CheckPermRequest

type CheckPermRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Key   string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckPermRequest) Descriptor deprecated

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

Deprecated: Use CheckPermRequest.ProtoReflect.Descriptor instead.

func (*CheckPermRequest) GetKey

func (x *CheckPermRequest) GetKey() string

func (*CheckPermRequest) GetToken

func (x *CheckPermRequest) GetToken() string

func (*CheckPermRequest) GetValue

func (x *CheckPermRequest) GetValue() []byte

func (*CheckPermRequest) ProtoMessage

func (*CheckPermRequest) ProtoMessage()

func (*CheckPermRequest) ProtoReflect

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

func (*CheckPermRequest) Reset

func (x *CheckPermRequest) Reset()

func (*CheckPermRequest) String

func (x *CheckPermRequest) String() string

type FriendshipLookupRequest

type FriendshipLookupRequest struct {
	AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Status    uint32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*FriendshipLookupRequest) Descriptor deprecated

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

Deprecated: Use FriendshipLookupRequest.ProtoReflect.Descriptor instead.

func (*FriendshipLookupRequest) GetAccountId

func (x *FriendshipLookupRequest) GetAccountId() uint64

func (*FriendshipLookupRequest) GetStatus

func (x *FriendshipLookupRequest) GetStatus() uint32

func (*FriendshipLookupRequest) ProtoMessage

func (*FriendshipLookupRequest) ProtoMessage()

func (*FriendshipLookupRequest) ProtoReflect

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

func (*FriendshipLookupRequest) Reset

func (x *FriendshipLookupRequest) Reset()

func (*FriendshipLookupRequest) String

func (x *FriendshipLookupRequest) String() string

type FriendshipResponse

type FriendshipResponse struct {
	AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	RelatedId uint64 `protobuf:"varint,2,opt,name=related_id,json=relatedId,proto3" json:"related_id,omitempty"`
	Status    uint32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*FriendshipResponse) Descriptor deprecated

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

Deprecated: Use FriendshipResponse.ProtoReflect.Descriptor instead.

func (*FriendshipResponse) GetAccountId

func (x *FriendshipResponse) GetAccountId() uint64

func (*FriendshipResponse) GetRelatedId

func (x *FriendshipResponse) GetRelatedId() uint64

func (*FriendshipResponse) GetStatus

func (x *FriendshipResponse) GetStatus() uint32

func (*FriendshipResponse) ProtoMessage

func (*FriendshipResponse) ProtoMessage()

func (*FriendshipResponse) ProtoReflect

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

func (*FriendshipResponse) Reset

func (x *FriendshipResponse) Reset()

func (*FriendshipResponse) String

func (x *FriendshipResponse) String() string

type FriendshipTwoSideLookupRequest

type FriendshipTwoSideLookupRequest struct {
	AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	RelatedId uint64 `protobuf:"varint,2,opt,name=related_id,json=relatedId,proto3" json:"related_id,omitempty"`
	Status    uint32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*FriendshipTwoSideLookupRequest) Descriptor deprecated

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

Deprecated: Use FriendshipTwoSideLookupRequest.ProtoReflect.Descriptor instead.

func (*FriendshipTwoSideLookupRequest) GetAccountId

func (x *FriendshipTwoSideLookupRequest) GetAccountId() uint64

func (*FriendshipTwoSideLookupRequest) GetRelatedId

func (x *FriendshipTwoSideLookupRequest) GetRelatedId() uint64

func (*FriendshipTwoSideLookupRequest) GetStatus

func (x *FriendshipTwoSideLookupRequest) GetStatus() uint32

func (*FriendshipTwoSideLookupRequest) ProtoMessage

func (*FriendshipTwoSideLookupRequest) ProtoMessage()

func (*FriendshipTwoSideLookupRequest) ProtoReflect

func (*FriendshipTwoSideLookupRequest) Reset

func (x *FriendshipTwoSideLookupRequest) Reset()

func (*FriendshipTwoSideLookupRequest) String

type FriendshipsClient

type FriendshipsClient interface {
	ListFriendship(ctx context.Context, in *FriendshipLookupRequest, opts ...grpc.CallOption) (*ListFriendshipResponse, error)
	GetFriendship(ctx context.Context, in *FriendshipTwoSideLookupRequest, opts ...grpc.CallOption) (*FriendshipResponse, error)
}

FriendshipsClient is the client API for Friendships 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 FriendshipsServer

type FriendshipsServer interface {
	ListFriendship(context.Context, *FriendshipLookupRequest) (*ListFriendshipResponse, error)
	GetFriendship(context.Context, *FriendshipTwoSideLookupRequest) (*FriendshipResponse, error)
	// contains filtered or unexported methods
}

FriendshipsServer is the server API for Friendships service. All implementations must embed UnimplementedFriendshipsServer for forward compatibility

type ListFriendshipResponse

type ListFriendshipResponse struct {
	Data []*FriendshipResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFriendshipResponse) Descriptor deprecated

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

Deprecated: Use ListFriendshipResponse.ProtoReflect.Descriptor instead.

func (*ListFriendshipResponse) GetData

func (*ListFriendshipResponse) ProtoMessage

func (*ListFriendshipResponse) ProtoMessage()

func (*ListFriendshipResponse) ProtoReflect

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

func (*ListFriendshipResponse) Reset

func (x *ListFriendshipResponse) Reset()

func (*ListFriendshipResponse) String

func (x *ListFriendshipResponse) String() string

type ListRealmMemberResponse

type ListRealmMemberResponse struct {
	Data []*RealmMemberResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRealmMemberResponse) Descriptor deprecated

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

Deprecated: Use ListRealmMemberResponse.ProtoReflect.Descriptor instead.

func (*ListRealmMemberResponse) GetData

func (*ListRealmMemberResponse) ProtoMessage

func (*ListRealmMemberResponse) ProtoMessage()

func (*ListRealmMemberResponse) ProtoReflect

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

func (*ListRealmMemberResponse) Reset

func (x *ListRealmMemberResponse) Reset()

func (*ListRealmMemberResponse) String

func (x *ListRealmMemberResponse) String() string

type ListRealmResponse

type ListRealmResponse struct {
	Data []*RealmResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRealmResponse) Descriptor deprecated

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

Deprecated: Use ListRealmResponse.ProtoReflect.Descriptor instead.

func (*ListRealmResponse) GetData

func (x *ListRealmResponse) GetData() []*RealmResponse

func (*ListRealmResponse) ProtoMessage

func (*ListRealmResponse) ProtoMessage()

func (*ListRealmResponse) ProtoReflect

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

func (*ListRealmResponse) Reset

func (x *ListRealmResponse) Reset()

func (*ListRealmResponse) String

func (x *ListRealmResponse) String() string

type NotifyClient

type NotifyClient interface {
	NotifyUser(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyReply, error)
}

NotifyClient is the client API for Notify 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.

func NewNotifyClient

func NewNotifyClient(cc grpc.ClientConnInterface) NotifyClient
type NotifyLink struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Url   string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyLink) Descriptor deprecated

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

Deprecated: Use NotifyLink.ProtoReflect.Descriptor instead.

func (*NotifyLink) GetLabel

func (x *NotifyLink) GetLabel() string

func (*NotifyLink) GetUrl

func (x *NotifyLink) GetUrl() string

func (*NotifyLink) ProtoMessage

func (*NotifyLink) ProtoMessage()

func (*NotifyLink) ProtoReflect

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

func (*NotifyLink) Reset

func (x *NotifyLink) Reset()

func (*NotifyLink) String

func (x *NotifyLink) String() string

type NotifyReply

type NotifyReply struct {
	IsSent bool `protobuf:"varint,1,opt,name=is_sent,json=isSent,proto3" json:"is_sent,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyReply) Descriptor deprecated

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

Deprecated: Use NotifyReply.ProtoReflect.Descriptor instead.

func (*NotifyReply) GetIsSent

func (x *NotifyReply) GetIsSent() bool

func (*NotifyReply) ProtoMessage

func (*NotifyReply) ProtoMessage()

func (*NotifyReply) ProtoReflect

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

func (*NotifyReply) Reset

func (x *NotifyReply) Reset()

func (*NotifyReply) String

func (x *NotifyReply) String() string

type NotifyRequest

type NotifyRequest struct {
	Subject      string        `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Content      string        `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Links        []*NotifyLink `protobuf:"bytes,3,rep,name=links,proto3" json:"links,omitempty"`
	IsImportant  bool          `protobuf:"varint,4,opt,name=is_important,json=isImportant,proto3" json:"is_important,omitempty"`
	RecipientId  uint64        `protobuf:"varint,5,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"`
	ClientId     string        `protobuf:"bytes,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret string        `protobuf:"bytes,7,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	IsRealtime   bool          `protobuf:"varint,8,opt,name=is_realtime,json=isRealtime,proto3" json:"is_realtime,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyRequest) Descriptor deprecated

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

Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead.

func (*NotifyRequest) GetClientId

func (x *NotifyRequest) GetClientId() string

func (*NotifyRequest) GetClientSecret

func (x *NotifyRequest) GetClientSecret() string

func (*NotifyRequest) GetContent

func (x *NotifyRequest) GetContent() string

func (*NotifyRequest) GetIsImportant

func (x *NotifyRequest) GetIsImportant() bool

func (*NotifyRequest) GetIsRealtime

func (x *NotifyRequest) GetIsRealtime() bool
func (x *NotifyRequest) GetLinks() []*NotifyLink

func (*NotifyRequest) GetRecipientId

func (x *NotifyRequest) GetRecipientId() uint64

func (*NotifyRequest) GetSubject

func (x *NotifyRequest) GetSubject() string

func (*NotifyRequest) ProtoMessage

func (*NotifyRequest) ProtoMessage()

func (*NotifyRequest) ProtoReflect

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

func (*NotifyRequest) Reset

func (x *NotifyRequest) Reset()

func (*NotifyRequest) String

func (x *NotifyRequest) String() string

type NotifyServer

type NotifyServer interface {
	NotifyUser(context.Context, *NotifyRequest) (*NotifyReply, error)
	// contains filtered or unexported methods
}

NotifyServer is the server API for Notify service. All implementations must embed UnimplementedNotifyServer for forward compatibility

type RealmLookupRequest

type RealmLookupRequest struct {
	Id          *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Alias       *string `protobuf:"bytes,2,opt,name=alias,proto3,oneof" json:"alias,omitempty"`
	IsPublic    *bool   `protobuf:"varint,3,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"`
	IsCommunity *bool   `protobuf:"varint,4,opt,name=is_community,json=isCommunity,proto3,oneof" json:"is_community,omitempty"`
	// contains filtered or unexported fields
}

func (*RealmLookupRequest) Descriptor deprecated

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

Deprecated: Use RealmLookupRequest.ProtoReflect.Descriptor instead.

func (*RealmLookupRequest) GetAlias

func (x *RealmLookupRequest) GetAlias() string

func (*RealmLookupRequest) GetId

func (x *RealmLookupRequest) GetId() uint64

func (*RealmLookupRequest) GetIsCommunity

func (x *RealmLookupRequest) GetIsCommunity() bool

func (*RealmLookupRequest) GetIsPublic

func (x *RealmLookupRequest) GetIsPublic() bool

func (*RealmLookupRequest) ProtoMessage

func (*RealmLookupRequest) ProtoMessage()

func (*RealmLookupRequest) ProtoReflect

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

func (*RealmLookupRequest) Reset

func (x *RealmLookupRequest) Reset()

func (*RealmLookupRequest) String

func (x *RealmLookupRequest) String() string

type RealmLookupWithUserRequest

type RealmLookupWithUserRequest struct {
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RealmLookupWithUserRequest) Descriptor deprecated

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

Deprecated: Use RealmLookupWithUserRequest.ProtoReflect.Descriptor instead.

func (*RealmLookupWithUserRequest) GetUserId

func (x *RealmLookupWithUserRequest) GetUserId() uint64

func (*RealmLookupWithUserRequest) ProtoMessage

func (*RealmLookupWithUserRequest) ProtoMessage()

func (*RealmLookupWithUserRequest) ProtoReflect

func (*RealmLookupWithUserRequest) Reset

func (x *RealmLookupWithUserRequest) Reset()

func (*RealmLookupWithUserRequest) String

func (x *RealmLookupWithUserRequest) String() string

type RealmMemberLookupRequest

type RealmMemberLookupRequest struct {
	RealmId uint64  `protobuf:"varint,1,opt,name=realm_id,json=realmId,proto3" json:"realm_id,omitempty"`
	UserId  *uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RealmMemberLookupRequest) Descriptor deprecated

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

Deprecated: Use RealmMemberLookupRequest.ProtoReflect.Descriptor instead.

func (*RealmMemberLookupRequest) GetRealmId

func (x *RealmMemberLookupRequest) GetRealmId() uint64

func (*RealmMemberLookupRequest) GetUserId

func (x *RealmMemberLookupRequest) GetUserId() uint64

func (*RealmMemberLookupRequest) ProtoMessage

func (*RealmMemberLookupRequest) ProtoMessage()

func (*RealmMemberLookupRequest) ProtoReflect

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

func (*RealmMemberLookupRequest) Reset

func (x *RealmMemberLookupRequest) Reset()

func (*RealmMemberLookupRequest) String

func (x *RealmMemberLookupRequest) String() string

type RealmMemberResponse

type RealmMemberResponse struct {
	RealmId    uint64 `protobuf:"varint,1,opt,name=realm_id,json=realmId,proto3" json:"realm_id,omitempty"`
	UserId     uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	PowerLevel int32  `protobuf:"varint,3,opt,name=power_level,json=powerLevel,proto3" json:"power_level,omitempty"`
	// contains filtered or unexported fields
}

func (*RealmMemberResponse) Descriptor deprecated

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

Deprecated: Use RealmMemberResponse.ProtoReflect.Descriptor instead.

func (*RealmMemberResponse) GetPowerLevel

func (x *RealmMemberResponse) GetPowerLevel() int32

func (*RealmMemberResponse) GetRealmId

func (x *RealmMemberResponse) GetRealmId() uint64

func (*RealmMemberResponse) GetUserId

func (x *RealmMemberResponse) GetUserId() uint64

func (*RealmMemberResponse) ProtoMessage

func (*RealmMemberResponse) ProtoMessage()

func (*RealmMemberResponse) ProtoReflect

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

func (*RealmMemberResponse) Reset

func (x *RealmMemberResponse) Reset()

func (*RealmMemberResponse) String

func (x *RealmMemberResponse) String() string

type RealmResponse

type RealmResponse struct {
	Id          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Alias       string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	IsPublic    bool   `protobuf:"varint,5,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"`
	IsCommunity bool   `protobuf:"varint,6,opt,name=is_community,json=isCommunity,proto3" json:"is_community,omitempty"`
	// contains filtered or unexported fields
}

func (*RealmResponse) Descriptor deprecated

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

Deprecated: Use RealmResponse.ProtoReflect.Descriptor instead.

func (*RealmResponse) GetAlias

func (x *RealmResponse) GetAlias() string

func (*RealmResponse) GetDescription

func (x *RealmResponse) GetDescription() string

func (*RealmResponse) GetId

func (x *RealmResponse) GetId() uint64

func (*RealmResponse) GetIsCommunity

func (x *RealmResponse) GetIsCommunity() bool

func (*RealmResponse) GetIsPublic

func (x *RealmResponse) GetIsPublic() bool

func (*RealmResponse) GetName

func (x *RealmResponse) GetName() string

func (*RealmResponse) ProtoMessage

func (*RealmResponse) ProtoMessage()

func (*RealmResponse) ProtoReflect

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

func (*RealmResponse) Reset

func (x *RealmResponse) Reset()

func (*RealmResponse) String

func (x *RealmResponse) String() string

type RealmsClient

type RealmsClient interface {
	ListCommunityRealm(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListRealmResponse, error)
	ListAvailableRealm(ctx context.Context, in *RealmLookupWithUserRequest, opts ...grpc.CallOption) (*ListRealmResponse, error)
	ListOwnedRealm(ctx context.Context, in *RealmLookupWithUserRequest, opts ...grpc.CallOption) (*ListRealmResponse, error)
	GetRealm(ctx context.Context, in *RealmLookupRequest, opts ...grpc.CallOption) (*RealmResponse, error)
	ListRealmMember(ctx context.Context, in *RealmMemberLookupRequest, opts ...grpc.CallOption) (*ListRealmMemberResponse, error)
	GetRealmMember(ctx context.Context, in *RealmMemberLookupRequest, opts ...grpc.CallOption) (*RealmMemberResponse, error)
}

RealmsClient is the client API for Realms 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.

func NewRealmsClient

func NewRealmsClient(cc grpc.ClientConnInterface) RealmsClient

type RealmsServer

type RealmsServer interface {
	ListCommunityRealm(context.Context, *emptypb.Empty) (*ListRealmResponse, error)
	ListAvailableRealm(context.Context, *RealmLookupWithUserRequest) (*ListRealmResponse, error)
	ListOwnedRealm(context.Context, *RealmLookupWithUserRequest) (*ListRealmResponse, error)
	GetRealm(context.Context, *RealmLookupRequest) (*RealmResponse, error)
	ListRealmMember(context.Context, *RealmMemberLookupRequest) (*ListRealmMemberResponse, error)
	GetRealmMember(context.Context, *RealmMemberLookupRequest) (*RealmMemberResponse, error)
	// contains filtered or unexported methods
}

RealmsServer is the server API for Realms service. All implementations must embed UnimplementedRealmsServer for forward compatibility

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) Authenticate

func (UnimplementedAuthServer) CheckPerm

type UnimplementedFriendshipsServer

type UnimplementedFriendshipsServer struct {
}

UnimplementedFriendshipsServer must be embedded to have forward compatible implementations.

func (UnimplementedFriendshipsServer) GetFriendship

func (UnimplementedFriendshipsServer) ListFriendship

type UnimplementedNotifyServer

type UnimplementedNotifyServer struct {
}

UnimplementedNotifyServer must be embedded to have forward compatible implementations.

func (UnimplementedNotifyServer) NotifyUser

type UnimplementedRealmsServer

type UnimplementedRealmsServer struct {
}

UnimplementedRealmsServer must be embedded to have forward compatible implementations.

func (UnimplementedRealmsServer) GetRealm

func (UnimplementedRealmsServer) GetRealmMember

func (UnimplementedRealmsServer) ListAvailableRealm

func (UnimplementedRealmsServer) ListCommunityRealm

func (UnimplementedRealmsServer) ListOwnedRealm

func (UnimplementedRealmsServer) ListRealmMember

type UnsafeAuthServer

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

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

type UnsafeFriendshipsServer

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

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

type UnsafeNotifyServer

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

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

type UnsafeRealmsServer

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

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

type Userinfo

type Userinfo struct {
	Id          uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Nick        string  `protobuf:"bytes,3,opt,name=nick,proto3" json:"nick,omitempty"`
	Email       string  `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Avatar      string  `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Banner      string  `protobuf:"bytes,6,opt,name=banner,proto3" json:"banner,omitempty"`
	Description *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Userinfo) Descriptor deprecated

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

Deprecated: Use Userinfo.ProtoReflect.Descriptor instead.

func (*Userinfo) GetAvatar

func (x *Userinfo) GetAvatar() string

func (*Userinfo) GetBanner

func (x *Userinfo) GetBanner() string

func (*Userinfo) GetDescription

func (x *Userinfo) GetDescription() string

func (*Userinfo) GetEmail

func (x *Userinfo) GetEmail() string

func (*Userinfo) GetId

func (x *Userinfo) GetId() uint64

func (*Userinfo) GetName

func (x *Userinfo) GetName() string

func (*Userinfo) GetNick

func (x *Userinfo) GetNick() string

func (*Userinfo) ProtoMessage

func (*Userinfo) ProtoMessage()

func (*Userinfo) ProtoReflect

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

func (*Userinfo) Reset

func (x *Userinfo) Reset()

func (*Userinfo) String

func (x *Userinfo) String() string

Jump to

Keyboard shortcuts

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