proto

package
v0.0.0-...-e115374 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotifyService_NotifyUser_FullMethodName      = "/proto.NotifyService/NotifyUser"
	NotifyService_NotifyUserBatch_FullMethodName = "/proto.NotifyService/NotifyUserBatch"
	NotifyService_NotifyAllUser_FullMethodName   = "/proto.NotifyService/NotifyAllUser"
)
View Source
const (
	RealmService_ListAvailableRealm_FullMethodName   = "/proto.RealmService/ListAvailableRealm"
	RealmService_ListOwnedRealm_FullMethodName       = "/proto.RealmService/ListOwnedRealm"
	RealmService_ListRealm_FullMethodName            = "/proto.RealmService/ListRealm"
	RealmService_GetRealm_FullMethodName             = "/proto.RealmService/GetRealm"
	RealmService_ListRealmMember_FullMethodName      = "/proto.RealmService/ListRealmMember"
	RealmService_GetRealmMember_FullMethodName       = "/proto.RealmService/GetRealmMember"
	RealmService_CheckRealmMemberPerm_FullMethodName = "/proto.RealmService/CheckRealmMemberPerm"
)
View Source
const (
	AuditService_RecordEvent_FullMethodName = "/proto.AuditService/RecordEvent"
)

Variables

View Source
var AuditService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.AuditService",
	HandlerType: (*AuditServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RecordEvent",
			Handler:    _AuditService_RecordEvent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "record.proto",
}

AuditService_ServiceDesc is the grpc.ServiceDesc for AuditService 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_notify_proto protoreflect.FileDescriptor
View Source
var File_realm_proto protoreflect.FileDescriptor
View Source
var File_record_proto protoreflect.FileDescriptor
View Source
var NotifyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.NotifyService",
	HandlerType: (*NotifyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NotifyUser",
			Handler:    _NotifyService_NotifyUser_Handler,
		},
		{
			MethodName: "NotifyUserBatch",
			Handler:    _NotifyService_NotifyUserBatch_Handler,
		},
		{
			MethodName: "NotifyAllUser",
			Handler:    _NotifyService_NotifyAllUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notify.proto",
}

NotifyService_ServiceDesc is the grpc.ServiceDesc for NotifyService 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 RealmService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.RealmService",
	HandlerType: (*RealmServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAvailableRealm",
			Handler:    _RealmService_ListAvailableRealm_Handler,
		},
		{
			MethodName: "ListOwnedRealm",
			Handler:    _RealmService_ListOwnedRealm_Handler,
		},
		{
			MethodName: "ListRealm",
			Handler:    _RealmService_ListRealm_Handler,
		},
		{
			MethodName: "GetRealm",
			Handler:    _RealmService_GetRealm_Handler,
		},
		{
			MethodName: "ListRealmMember",
			Handler:    _RealmService_ListRealmMember_Handler,
		},
		{
			MethodName: "GetRealmMember",
			Handler:    _RealmService_GetRealmMember_Handler,
		},
		{
			MethodName: "CheckRealmMemberPerm",
			Handler:    _RealmService_CheckRealmMemberPerm_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "realm.proto",
}

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

Functions

func RegisterAuditServiceServer

func RegisterAuditServiceServer(s grpc.ServiceRegistrar, srv AuditServiceServer)

func RegisterNotifyServiceServer

func RegisterNotifyServiceServer(s grpc.ServiceRegistrar, srv NotifyServiceServer)

func RegisterRealmServiceServer

func RegisterRealmServiceServer(s grpc.ServiceRegistrar, srv RealmServiceServer)

Types

type AuditServiceClient

type AuditServiceClient interface {
	RecordEvent(ctx context.Context, in *RecordEventRequest, opts ...grpc.CallOption) (*RecordEventResponse, error)
}

AuditServiceClient is the client API for AuditService 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 AuditServiceServer

type AuditServiceServer interface {
	RecordEvent(context.Context, *RecordEventRequest) (*RecordEventResponse, error)
	// contains filtered or unexported methods
}

AuditServiceServer is the server API for AuditService service. All implementations must embed UnimplementedAuditServiceServer for forward compatibility.

type CheckRealmPermRequest

type CheckRealmPermRequest 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 (*CheckRealmPermRequest) Descriptor deprecated

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

Deprecated: Use CheckRealmPermRequest.ProtoReflect.Descriptor instead.

func (*CheckRealmPermRequest) GetPowerLevel

func (x *CheckRealmPermRequest) GetPowerLevel() int32

func (*CheckRealmPermRequest) GetRealmId

func (x *CheckRealmPermRequest) GetRealmId() uint64

func (*CheckRealmPermRequest) GetUserId

func (x *CheckRealmPermRequest) GetUserId() uint64

func (*CheckRealmPermRequest) ProtoMessage

func (*CheckRealmPermRequest) ProtoMessage()

func (*CheckRealmPermRequest) ProtoReflect

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

func (*CheckRealmPermRequest) Reset

func (x *CheckRealmPermRequest) Reset()

func (*CheckRealmPermRequest) String

func (x *CheckRealmPermRequest) String() string

type CheckRealmPermResponse

type CheckRealmPermResponse struct {
	IsSuccess bool `protobuf:"varint,1,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckRealmPermResponse) Descriptor deprecated

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

Deprecated: Use CheckRealmPermResponse.ProtoReflect.Descriptor instead.

func (*CheckRealmPermResponse) GetIsSuccess

func (x *CheckRealmPermResponse) GetIsSuccess() bool

func (*CheckRealmPermResponse) ProtoMessage

func (*CheckRealmPermResponse) ProtoMessage()

func (*CheckRealmPermResponse) ProtoReflect

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

func (*CheckRealmPermResponse) Reset

func (x *CheckRealmPermResponse) Reset()

func (*CheckRealmPermResponse) String

func (x *CheckRealmPermResponse) String() string

type ListRealmMemberResponse

type ListRealmMemberResponse struct {
	Data []*RealmMemberInfo `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 (x *ListRealmMemberResponse) GetData() []*RealmMemberInfo

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 ListRealmRequest

type ListRealmRequest struct {
	Id []uint64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRealmRequest) Descriptor deprecated

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

Deprecated: Use ListRealmRequest.ProtoReflect.Descriptor instead.

func (*ListRealmRequest) GetId

func (x *ListRealmRequest) GetId() []uint64

func (*ListRealmRequest) ProtoMessage

func (*ListRealmRequest) ProtoMessage()

func (*ListRealmRequest) ProtoReflect

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

func (*ListRealmRequest) Reset

func (x *ListRealmRequest) Reset()

func (*ListRealmRequest) String

func (x *ListRealmRequest) String() string

type ListRealmResponse

type ListRealmResponse struct {
	Data []*RealmInfo `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() []*RealmInfo

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 LookupRealmRequest

type LookupRealmRequest 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 (*LookupRealmRequest) Descriptor deprecated

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

Deprecated: Use LookupRealmRequest.ProtoReflect.Descriptor instead.

func (*LookupRealmRequest) GetAlias

func (x *LookupRealmRequest) GetAlias() string

func (*LookupRealmRequest) GetId

func (x *LookupRealmRequest) GetId() uint64

func (*LookupRealmRequest) GetIsCommunity

func (x *LookupRealmRequest) GetIsCommunity() bool

func (*LookupRealmRequest) GetIsPublic

func (x *LookupRealmRequest) GetIsPublic() bool

func (*LookupRealmRequest) ProtoMessage

func (*LookupRealmRequest) ProtoMessage()

func (*LookupRealmRequest) ProtoReflect

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

func (*LookupRealmRequest) Reset

func (x *LookupRealmRequest) Reset()

func (*LookupRealmRequest) String

func (x *LookupRealmRequest) String() string

type LookupUserRealmRequest

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

func (*LookupUserRealmRequest) Descriptor deprecated

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

Deprecated: Use LookupUserRealmRequest.ProtoReflect.Descriptor instead.

func (*LookupUserRealmRequest) GetUserId

func (x *LookupUserRealmRequest) GetUserId() uint64

func (*LookupUserRealmRequest) ProtoMessage

func (*LookupUserRealmRequest) ProtoMessage()

func (*LookupUserRealmRequest) ProtoReflect

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

func (*LookupUserRealmRequest) Reset

func (x *LookupUserRealmRequest) Reset()

func (*LookupUserRealmRequest) String

func (x *LookupUserRealmRequest) String() string

type NotifyInfoPayload

type NotifyInfoPayload struct {

	// This bytes is directly encoded from pushkit.Notification
	// Which is passed to the pusher service, we don't need to care about the content
	Data    []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Unsaved bool   `protobuf:"varint,2,opt,name=unsaved,proto3" json:"unsaved,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyInfoPayload) Descriptor deprecated

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

Deprecated: Use NotifyInfoPayload.ProtoReflect.Descriptor instead.

func (*NotifyInfoPayload) GetData

func (x *NotifyInfoPayload) GetData() []byte

func (*NotifyInfoPayload) GetUnsaved

func (x *NotifyInfoPayload) GetUnsaved() bool

func (*NotifyInfoPayload) ProtoMessage

func (*NotifyInfoPayload) ProtoMessage()

func (*NotifyInfoPayload) ProtoReflect

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

func (*NotifyInfoPayload) Reset

func (x *NotifyInfoPayload) Reset()

func (*NotifyInfoPayload) String

func (x *NotifyInfoPayload) String() string

type NotifyResponse

type NotifyResponse struct {
	IsSuccess bool `protobuf:"varint,1,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyResponse) Descriptor deprecated

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

Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead.

func (*NotifyResponse) GetIsSuccess

func (x *NotifyResponse) GetIsSuccess() bool

func (*NotifyResponse) ProtoMessage

func (*NotifyResponse) ProtoMessage()

func (*NotifyResponse) ProtoReflect

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

func (*NotifyResponse) Reset

func (x *NotifyResponse) Reset()

func (*NotifyResponse) String

func (x *NotifyResponse) String() string

type NotifyServiceClient

type NotifyServiceClient interface {
	NotifyUser(ctx context.Context, in *NotifyUserRequest, opts ...grpc.CallOption) (*NotifyResponse, error)
	NotifyUserBatch(ctx context.Context, in *NotifyUserBatchRequest, opts ...grpc.CallOption) (*NotifyResponse, error)
	NotifyAllUser(ctx context.Context, in *NotifyInfoPayload, opts ...grpc.CallOption) (*NotifyResponse, error)
}

NotifyServiceClient is the client API for NotifyService 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 NotifyServiceServer

type NotifyServiceServer interface {
	NotifyUser(context.Context, *NotifyUserRequest) (*NotifyResponse, error)
	NotifyUserBatch(context.Context, *NotifyUserBatchRequest) (*NotifyResponse, error)
	NotifyAllUser(context.Context, *NotifyInfoPayload) (*NotifyResponse, error)
	// contains filtered or unexported methods
}

NotifyServiceServer is the server API for NotifyService service. All implementations must embed UnimplementedNotifyServiceServer for forward compatibility.

type NotifyUserBatchRequest

type NotifyUserBatchRequest struct {
	UserId []uint64           `protobuf:"varint,1,rep,packed,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Notify *NotifyInfoPayload `protobuf:"bytes,2,opt,name=notify,proto3" json:"notify,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyUserBatchRequest) Descriptor deprecated

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

Deprecated: Use NotifyUserBatchRequest.ProtoReflect.Descriptor instead.

func (*NotifyUserBatchRequest) GetNotify

func (x *NotifyUserBatchRequest) GetNotify() *NotifyInfoPayload

func (*NotifyUserBatchRequest) GetUserId

func (x *NotifyUserBatchRequest) GetUserId() []uint64

func (*NotifyUserBatchRequest) ProtoMessage

func (*NotifyUserBatchRequest) ProtoMessage()

func (*NotifyUserBatchRequest) ProtoReflect

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

func (*NotifyUserBatchRequest) Reset

func (x *NotifyUserBatchRequest) Reset()

func (*NotifyUserBatchRequest) String

func (x *NotifyUserBatchRequest) String() string

type NotifyUserRequest

type NotifyUserRequest struct {
	UserId uint64             `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Notify *NotifyInfoPayload `protobuf:"bytes,2,opt,name=notify,proto3" json:"notify,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyUserRequest) Descriptor deprecated

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

Deprecated: Use NotifyUserRequest.ProtoReflect.Descriptor instead.

func (*NotifyUserRequest) GetNotify

func (x *NotifyUserRequest) GetNotify() *NotifyInfoPayload

func (*NotifyUserRequest) GetUserId

func (x *NotifyUserRequest) GetUserId() uint64

func (*NotifyUserRequest) ProtoMessage

func (*NotifyUserRequest) ProtoMessage()

func (*NotifyUserRequest) ProtoReflect

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

func (*NotifyUserRequest) Reset

func (x *NotifyUserRequest) Reset()

func (*NotifyUserRequest) String

func (x *NotifyUserRequest) String() string

type RealmInfo

type RealmInfo 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"`
	Avatar       string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Banner       string `protobuf:"bytes,7,opt,name=banner,proto3" json:"banner,omitempty"`
	IsPublic     bool   `protobuf:"varint,9,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"`
	IsCommunity  bool   `protobuf:"varint,10,opt,name=is_community,json=isCommunity,proto3" json:"is_community,omitempty"`
	AccessPolicy []byte `protobuf:"bytes,11,opt,name=access_policy,json=accessPolicy,proto3" json:"access_policy,omitempty"`
	// contains filtered or unexported fields
}

func (*RealmInfo) Descriptor deprecated

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

Deprecated: Use RealmInfo.ProtoReflect.Descriptor instead.

func (*RealmInfo) GetAccessPolicy

func (x *RealmInfo) GetAccessPolicy() []byte

func (*RealmInfo) GetAlias

func (x *RealmInfo) GetAlias() string

func (*RealmInfo) GetAvatar

func (x *RealmInfo) GetAvatar() string

func (*RealmInfo) GetBanner

func (x *RealmInfo) GetBanner() string

func (*RealmInfo) GetDescription

func (x *RealmInfo) GetDescription() string

func (*RealmInfo) GetId

func (x *RealmInfo) GetId() uint64

func (*RealmInfo) GetIsCommunity

func (x *RealmInfo) GetIsCommunity() bool

func (*RealmInfo) GetIsPublic

func (x *RealmInfo) GetIsPublic() bool

func (*RealmInfo) GetName

func (x *RealmInfo) GetName() string

func (*RealmInfo) ProtoMessage

func (*RealmInfo) ProtoMessage()

func (*RealmInfo) ProtoReflect

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

func (*RealmInfo) Reset

func (x *RealmInfo) Reset()

func (*RealmInfo) String

func (x *RealmInfo) String() string

type RealmMemberInfo

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

func (*RealmMemberInfo) Descriptor deprecated

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

Deprecated: Use RealmMemberInfo.ProtoReflect.Descriptor instead.

func (*RealmMemberInfo) GetId

func (x *RealmMemberInfo) GetId() uint64

func (*RealmMemberInfo) GetPowerLevel

func (x *RealmMemberInfo) GetPowerLevel() int32

func (*RealmMemberInfo) GetRealmId

func (x *RealmMemberInfo) GetRealmId() uint64

func (*RealmMemberInfo) GetUserId

func (x *RealmMemberInfo) GetUserId() uint64

func (*RealmMemberInfo) ProtoMessage

func (*RealmMemberInfo) ProtoMessage()

func (*RealmMemberInfo) ProtoReflect

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

func (*RealmMemberInfo) Reset

func (x *RealmMemberInfo) Reset()

func (*RealmMemberInfo) String

func (x *RealmMemberInfo) String() string

type RealmMemberLookupRequest

type RealmMemberLookupRequest struct {
	RealmId *uint64 `protobuf:"varint,1,opt,name=realm_id,json=realmId,proto3,oneof" 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 RealmServiceClient

type RealmServiceClient interface {
	ListAvailableRealm(ctx context.Context, in *LookupUserRealmRequest, opts ...grpc.CallOption) (*ListRealmResponse, error)
	ListOwnedRealm(ctx context.Context, in *LookupUserRealmRequest, opts ...grpc.CallOption) (*ListRealmResponse, error)
	ListRealm(ctx context.Context, in *ListRealmRequest, opts ...grpc.CallOption) (*ListRealmResponse, error)
	GetRealm(ctx context.Context, in *LookupRealmRequest, opts ...grpc.CallOption) (*RealmInfo, error)
	ListRealmMember(ctx context.Context, in *RealmMemberLookupRequest, opts ...grpc.CallOption) (*ListRealmMemberResponse, error)
	GetRealmMember(ctx context.Context, in *RealmMemberLookupRequest, opts ...grpc.CallOption) (*RealmMemberInfo, error)
	CheckRealmMemberPerm(ctx context.Context, in *CheckRealmPermRequest, opts ...grpc.CallOption) (*CheckRealmPermResponse, error)
}

RealmServiceClient is the client API for RealmService 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 RealmServiceServer

type RealmServiceServer interface {
	ListAvailableRealm(context.Context, *LookupUserRealmRequest) (*ListRealmResponse, error)
	ListOwnedRealm(context.Context, *LookupUserRealmRequest) (*ListRealmResponse, error)
	ListRealm(context.Context, *ListRealmRequest) (*ListRealmResponse, error)
	GetRealm(context.Context, *LookupRealmRequest) (*RealmInfo, error)
	ListRealmMember(context.Context, *RealmMemberLookupRequest) (*ListRealmMemberResponse, error)
	GetRealmMember(context.Context, *RealmMemberLookupRequest) (*RealmMemberInfo, error)
	CheckRealmMemberPerm(context.Context, *CheckRealmPermRequest) (*CheckRealmPermResponse, error)
	// contains filtered or unexported methods
}

RealmServiceServer is the server API for RealmService service. All implementations must embed UnimplementedRealmServiceServer for forward compatibility.

type RecordEventRequest

type RecordEventRequest struct {
	UserId    uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Action    string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	Target    string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	Ip        string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
	UserAgent string `protobuf:"bytes,5,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordEventRequest) Descriptor deprecated

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

Deprecated: Use RecordEventRequest.ProtoReflect.Descriptor instead.

func (*RecordEventRequest) GetAction

func (x *RecordEventRequest) GetAction() string

func (*RecordEventRequest) GetIp

func (x *RecordEventRequest) GetIp() string

func (*RecordEventRequest) GetTarget

func (x *RecordEventRequest) GetTarget() string

func (*RecordEventRequest) GetUserAgent

func (x *RecordEventRequest) GetUserAgent() string

func (*RecordEventRequest) GetUserId

func (x *RecordEventRequest) GetUserId() uint64

func (*RecordEventRequest) ProtoMessage

func (*RecordEventRequest) ProtoMessage()

func (*RecordEventRequest) ProtoReflect

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

func (*RecordEventRequest) Reset

func (x *RecordEventRequest) Reset()

func (*RecordEventRequest) String

func (x *RecordEventRequest) String() string

type RecordEventResponse

type RecordEventResponse struct {
	IsSuccess bool `protobuf:"varint,1,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordEventResponse) Descriptor deprecated

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

Deprecated: Use RecordEventResponse.ProtoReflect.Descriptor instead.

func (*RecordEventResponse) GetIsSuccess

func (x *RecordEventResponse) GetIsSuccess() bool

func (*RecordEventResponse) ProtoMessage

func (*RecordEventResponse) ProtoMessage()

func (*RecordEventResponse) ProtoReflect

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

func (*RecordEventResponse) Reset

func (x *RecordEventResponse) Reset()

func (*RecordEventResponse) String

func (x *RecordEventResponse) String() string

type UnimplementedAuditServiceServer

type UnimplementedAuditServiceServer struct{}

UnimplementedAuditServiceServer 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 (UnimplementedAuditServiceServer) RecordEvent

type UnimplementedNotifyServiceServer

type UnimplementedNotifyServiceServer struct{}

UnimplementedNotifyServiceServer 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 (UnimplementedNotifyServiceServer) NotifyAllUser

func (UnimplementedNotifyServiceServer) NotifyUser

func (UnimplementedNotifyServiceServer) NotifyUserBatch

type UnimplementedRealmServiceServer

type UnimplementedRealmServiceServer struct{}

UnimplementedRealmServiceServer 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 (UnimplementedRealmServiceServer) CheckRealmMemberPerm

func (UnimplementedRealmServiceServer) GetRealm

func (UnimplementedRealmServiceServer) GetRealmMember

func (UnimplementedRealmServiceServer) ListAvailableRealm

func (UnimplementedRealmServiceServer) ListOwnedRealm

func (UnimplementedRealmServiceServer) ListRealm

func (UnimplementedRealmServiceServer) ListRealmMember

type UnsafeAuditServiceServer

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

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

type UnsafeNotifyServiceServer

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

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

type UnsafeRealmServiceServer

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

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

Jump to

Keyboard shortcuts

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