Documentation ¶
Index ¶
- Variables
- func RegisterAdminAPIServer(s grpc.ServiceRegistrar, srv AdminAPIServer)
- type AddUserToCircleRequest
- func (*AddUserToCircleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserToCircleRequest) GetCircleId() string
- func (x *AddUserToCircleRequest) GetUserId() string
- func (*AddUserToCircleRequest) ProtoMessage()
- func (x *AddUserToCircleRequest) ProtoReflect() protoreflect.Message
- func (x *AddUserToCircleRequest) Reset()
- func (x *AddUserToCircleRequest) String() string
- type AdminAPIClient
- type AdminAPIServer
- type Circle
- func (*Circle) Descriptor() ([]byte, []int)deprecated
- func (x *Circle) GetCircleId() string
- func (x *Circle) GetGroupId() string
- func (x *Circle) GetName() string
- func (*Circle) ProtoMessage()
- func (x *Circle) ProtoReflect() protoreflect.Message
- func (x *Circle) Reset()
- func (x *Circle) String() string
- type DeleteCircleRequest
- func (*DeleteCircleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCircleRequest) GetCircleId() string
- func (*DeleteCircleRequest) ProtoMessage()
- func (x *DeleteCircleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCircleRequest) Reset()
- func (x *DeleteCircleRequest) String() string
- type GeneratePostRequest
- func (*GeneratePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratePostRequest) GetCircleId() string
- func (x *GeneratePostRequest) GetCount() uint32
- func (*GeneratePostRequest) ProtoMessage()
- func (x *GeneratePostRequest) ProtoReflect() protoreflect.Message
- func (x *GeneratePostRequest) Reset()
- func (x *GeneratePostRequest) String() string
- type JoinCircleRequest
- func (*JoinCircleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JoinCircleRequest) GetCircleId() string
- func (x *JoinCircleRequest) GetUserId() string
- func (*JoinCircleRequest) ProtoMessage()
- func (x *JoinCircleRequest) ProtoReflect() protoreflect.Message
- func (x *JoinCircleRequest) Reset()
- func (x *JoinCircleRequest) String() string
- type LeaveCircleRequest
- func (*LeaveCircleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaveCircleRequest) GetCircleId() string
- func (x *LeaveCircleRequest) GetUserId() string
- func (*LeaveCircleRequest) ProtoMessage()
- func (x *LeaveCircleRequest) ProtoReflect() protoreflect.Message
- func (x *LeaveCircleRequest) Reset()
- func (x *LeaveCircleRequest) String() string
- type LikePostByUserRequest
- func (*LikePostByUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LikePostByUserRequest) GetPostId() string
- func (x *LikePostByUserRequest) GetUserId() string
- func (*LikePostByUserRequest) ProtoMessage()
- func (x *LikePostByUserRequest) ProtoReflect() protoreflect.Message
- func (x *LikePostByUserRequest) Reset()
- func (x *LikePostByUserRequest) String() string
- type ListCirclesResponse
- func (*ListCirclesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCirclesResponse) GetCircles() []*Circle
- func (*ListCirclesResponse) ProtoMessage()
- func (x *ListCirclesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCirclesResponse) Reset()
- func (x *ListCirclesResponse) String() string
- type ResultResponse
- type SetAuthorBoostRequest
- func (*SetAuthorBoostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetAuthorBoostRequest) GetBoost() float64
- func (x *SetAuthorBoostRequest) GetUserId() string
- func (*SetAuthorBoostRequest) ProtoMessage()
- func (x *SetAuthorBoostRequest) ProtoReflect() protoreflect.Message
- func (x *SetAuthorBoostRequest) Reset()
- func (x *SetAuthorBoostRequest) String() string
- type SetCircleBoostRequest
- func (*SetCircleBoostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetCircleBoostRequest) GetBoost() float64
- func (x *SetCircleBoostRequest) GetCircleId() string
- func (*SetCircleBoostRequest) ProtoMessage()
- func (x *SetCircleBoostRequest) ProtoReflect() protoreflect.Message
- func (x *SetCircleBoostRequest) Reset()
- func (x *SetCircleBoostRequest) String() string
- type SetCircleDefaultRequest
- func (*SetCircleDefaultRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetCircleDefaultRequest) GetCircleId() string
- func (x *SetCircleDefaultRequest) GetIsDefault() bool
- func (*SetCircleDefaultRequest) ProtoMessage()
- func (x *SetCircleDefaultRequest) ProtoReflect() protoreflect.Message
- func (x *SetCircleDefaultRequest) Reset()
- func (x *SetCircleDefaultRequest) String() string
- type UnimplementedAdminAPIServer
- func (UnimplementedAdminAPIServer) AddCircle(context.Context, *Circle) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) AddUserToCircle(context.Context, *AddUserToCircleRequest) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) DeleteCircle(context.Context, *DeleteCircleRequest) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) GeneratePost(context.Context, *GeneratePostRequest) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) ImportPostsAuthors(context.Context, *UseEmpty) (*UseEmpty, error)
- func (UnimplementedAdminAPIServer) JoinCircle(context.Context, *JoinCircleRequest) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) LeaveCircle(context.Context, *LeaveCircleRequest) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) LikePostByUser(context.Context, *LikePostByUserRequest) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) ListCircles(context.Context, *UseEmpty) (*ListCirclesResponse, error)
- func (UnimplementedAdminAPIServer) ResetFeeds(context.Context, *UseEmpty) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) SetAuthorBoost(context.Context, *SetAuthorBoostRequest) (*UseEmpty, error)
- func (UnimplementedAdminAPIServer) SetCircleBoost(context.Context, *SetCircleBoostRequest) (*UseEmpty, error)
- func (UnimplementedAdminAPIServer) SetCircleDefault(context.Context, *SetCircleDefaultRequest) (*UseEmpty, error)
- func (UnimplementedAdminAPIServer) UpdatePost(context.Context, *UpdatePostRequest) (*ResultResponse, error)
- func (UnimplementedAdminAPIServer) ViewPostByUser(context.Context, *ViewPostByUserRequest) (*ResultResponse, error)
- type UnsafeAdminAPIServer
- type UpdatePostRequest
- func (*UpdatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostRequest) GetLikes() uint32
- func (x *UpdatePostRequest) GetPostId() string
- func (x *UpdatePostRequest) GetViews() uint32
- func (*UpdatePostRequest) ProtoMessage()
- func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostRequest) Reset()
- func (x *UpdatePostRequest) String() string
- type UseEmpty
- type ViewPostByUserRequest
- func (*ViewPostByUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ViewPostByUserRequest) GetPostId() string
- func (x *ViewPostByUserRequest) GetTotal() int64
- func (x *ViewPostByUserRequest) GetUserId() string
- func (*ViewPostByUserRequest) ProtoMessage()
- func (x *ViewPostByUserRequest) ProtoReflect() protoreflect.Message
- func (x *ViewPostByUserRequest) Reset()
- func (x *ViewPostByUserRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var AdminAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "feed_api.v1.AdminAPI", HandlerType: (*AdminAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GeneratePost", Handler: _AdminAPI_GeneratePost_Handler, }, { MethodName: "AddCircle", Handler: _AdminAPI_AddCircle_Handler, }, { MethodName: "ListCircles", Handler: _AdminAPI_ListCircles_Handler, }, { MethodName: "AddUserToCircle", Handler: _AdminAPI_AddUserToCircle_Handler, }, { MethodName: "ViewPostByUser", Handler: _AdminAPI_ViewPostByUser_Handler, }, { MethodName: "LikePostByUser", Handler: _AdminAPI_LikePostByUser_Handler, }, { MethodName: "UpdatePost", Handler: _AdminAPI_UpdatePost_Handler, }, { MethodName: "JoinCircle", Handler: _AdminAPI_JoinCircle_Handler, }, { MethodName: "LeaveCircle", Handler: _AdminAPI_LeaveCircle_Handler, }, { MethodName: "DeleteCircle", Handler: _AdminAPI_DeleteCircle_Handler, }, { MethodName: "ResetFeeds", Handler: _AdminAPI_ResetFeeds_Handler, }, { MethodName: "ImportPostsAuthors", Handler: _AdminAPI_ImportPostsAuthors_Handler, }, { MethodName: "SetCircleBoost", Handler: _AdminAPI_SetCircleBoost_Handler, }, { MethodName: "SetAuthorBoost", Handler: _AdminAPI_SetAuthorBoost_Handler, }, { MethodName: "SetCircleDefault", Handler: _AdminAPI_SetCircleDefault_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "feed-api/admin/v1/admin.proto", }
AdminAPI_ServiceDesc is the grpc.ServiceDesc for AdminAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_feed_api_admin_v1_admin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminAPIServer ¶
func RegisterAdminAPIServer(s grpc.ServiceRegistrar, srv AdminAPIServer)
Types ¶
type AddUserToCircleRequest ¶
type AddUserToCircleRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*AddUserToCircleRequest) Descriptor
deprecated
func (*AddUserToCircleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddUserToCircleRequest.ProtoReflect.Descriptor instead.
func (*AddUserToCircleRequest) GetCircleId ¶
func (x *AddUserToCircleRequest) GetCircleId() string
func (*AddUserToCircleRequest) GetUserId ¶
func (x *AddUserToCircleRequest) GetUserId() string
func (*AddUserToCircleRequest) ProtoMessage ¶
func (*AddUserToCircleRequest) ProtoMessage()
func (*AddUserToCircleRequest) ProtoReflect ¶
func (x *AddUserToCircleRequest) ProtoReflect() protoreflect.Message
func (*AddUserToCircleRequest) Reset ¶
func (x *AddUserToCircleRequest) Reset()
func (*AddUserToCircleRequest) String ¶
func (x *AddUserToCircleRequest) String() string
type AdminAPIClient ¶
type AdminAPIClient interface { GeneratePost(ctx context.Context, in *GeneratePostRequest, opts ...grpc.CallOption) (*ResultResponse, error) AddCircle(ctx context.Context, in *Circle, opts ...grpc.CallOption) (*ResultResponse, error) ListCircles(ctx context.Context, in *UseEmpty, opts ...grpc.CallOption) (*ListCirclesResponse, error) AddUserToCircle(ctx context.Context, in *AddUserToCircleRequest, opts ...grpc.CallOption) (*ResultResponse, error) ViewPostByUser(ctx context.Context, in *ViewPostByUserRequest, opts ...grpc.CallOption) (*ResultResponse, error) LikePostByUser(ctx context.Context, in *LikePostByUserRequest, opts ...grpc.CallOption) (*ResultResponse, error) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*ResultResponse, error) JoinCircle(ctx context.Context, in *JoinCircleRequest, opts ...grpc.CallOption) (*ResultResponse, error) LeaveCircle(ctx context.Context, in *LeaveCircleRequest, opts ...grpc.CallOption) (*ResultResponse, error) DeleteCircle(ctx context.Context, in *DeleteCircleRequest, opts ...grpc.CallOption) (*ResultResponse, error) ResetFeeds(ctx context.Context, in *UseEmpty, opts ...grpc.CallOption) (*ResultResponse, error) ImportPostsAuthors(ctx context.Context, in *UseEmpty, opts ...grpc.CallOption) (*UseEmpty, error) SetCircleBoost(ctx context.Context, in *SetCircleBoostRequest, opts ...grpc.CallOption) (*UseEmpty, error) SetAuthorBoost(ctx context.Context, in *SetAuthorBoostRequest, opts ...grpc.CallOption) (*UseEmpty, error) SetCircleDefault(ctx context.Context, in *SetCircleDefaultRequest, opts ...grpc.CallOption) (*UseEmpty, error) }
AdminAPIClient is the client API for AdminAPI 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 NewAdminAPIClient ¶
func NewAdminAPIClient(cc grpc.ClientConnInterface) AdminAPIClient
type AdminAPIServer ¶
type AdminAPIServer interface { GeneratePost(context.Context, *GeneratePostRequest) (*ResultResponse, error) AddCircle(context.Context, *Circle) (*ResultResponse, error) ListCircles(context.Context, *UseEmpty) (*ListCirclesResponse, error) AddUserToCircle(context.Context, *AddUserToCircleRequest) (*ResultResponse, error) ViewPostByUser(context.Context, *ViewPostByUserRequest) (*ResultResponse, error) LikePostByUser(context.Context, *LikePostByUserRequest) (*ResultResponse, error) UpdatePost(context.Context, *UpdatePostRequest) (*ResultResponse, error) JoinCircle(context.Context, *JoinCircleRequest) (*ResultResponse, error) LeaveCircle(context.Context, *LeaveCircleRequest) (*ResultResponse, error) DeleteCircle(context.Context, *DeleteCircleRequest) (*ResultResponse, error) ResetFeeds(context.Context, *UseEmpty) (*ResultResponse, error) ImportPostsAuthors(context.Context, *UseEmpty) (*UseEmpty, error) SetCircleBoost(context.Context, *SetCircleBoostRequest) (*UseEmpty, error) SetAuthorBoost(context.Context, *SetAuthorBoostRequest) (*UseEmpty, error) SetCircleDefault(context.Context, *SetCircleDefaultRequest) (*UseEmpty, error) // contains filtered or unexported methods }
AdminAPIServer is the server API for AdminAPI service. All implementations must embed UnimplementedAdminAPIServer for forward compatibility
type Circle ¶
type Circle struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` GroupId string `protobuf:"bytes,3,opt,name=groupId,proto3" json:"groupId,omitempty"` // contains filtered or unexported fields }
func (*Circle) Descriptor
deprecated
func (*Circle) GetCircleId ¶
func (*Circle) GetGroupId ¶
func (*Circle) ProtoMessage ¶
func (*Circle) ProtoMessage()
func (*Circle) ProtoReflect ¶
func (x *Circle) ProtoReflect() protoreflect.Message
type DeleteCircleRequest ¶
type DeleteCircleRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` // contains filtered or unexported fields }
func (*DeleteCircleRequest) Descriptor
deprecated
func (*DeleteCircleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCircleRequest.ProtoReflect.Descriptor instead.
func (*DeleteCircleRequest) GetCircleId ¶
func (x *DeleteCircleRequest) GetCircleId() string
func (*DeleteCircleRequest) ProtoMessage ¶
func (*DeleteCircleRequest) ProtoMessage()
func (*DeleteCircleRequest) ProtoReflect ¶
func (x *DeleteCircleRequest) ProtoReflect() protoreflect.Message
func (*DeleteCircleRequest) Reset ¶
func (x *DeleteCircleRequest) Reset()
func (*DeleteCircleRequest) String ¶
func (x *DeleteCircleRequest) String() string
type GeneratePostRequest ¶
type GeneratePostRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GeneratePostRequest) Descriptor
deprecated
func (*GeneratePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GeneratePostRequest.ProtoReflect.Descriptor instead.
func (*GeneratePostRequest) GetCircleId ¶
func (x *GeneratePostRequest) GetCircleId() string
func (*GeneratePostRequest) GetCount ¶
func (x *GeneratePostRequest) GetCount() uint32
func (*GeneratePostRequest) ProtoMessage ¶
func (*GeneratePostRequest) ProtoMessage()
func (*GeneratePostRequest) ProtoReflect ¶
func (x *GeneratePostRequest) ProtoReflect() protoreflect.Message
func (*GeneratePostRequest) Reset ¶
func (x *GeneratePostRequest) Reset()
func (*GeneratePostRequest) String ¶
func (x *GeneratePostRequest) String() string
type JoinCircleRequest ¶
type JoinCircleRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*JoinCircleRequest) Descriptor
deprecated
func (*JoinCircleRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinCircleRequest.ProtoReflect.Descriptor instead.
func (*JoinCircleRequest) GetCircleId ¶
func (x *JoinCircleRequest) GetCircleId() string
func (*JoinCircleRequest) GetUserId ¶
func (x *JoinCircleRequest) GetUserId() string
func (*JoinCircleRequest) ProtoMessage ¶
func (*JoinCircleRequest) ProtoMessage()
func (*JoinCircleRequest) ProtoReflect ¶
func (x *JoinCircleRequest) ProtoReflect() protoreflect.Message
func (*JoinCircleRequest) Reset ¶
func (x *JoinCircleRequest) Reset()
func (*JoinCircleRequest) String ¶
func (x *JoinCircleRequest) String() string
type LeaveCircleRequest ¶
type LeaveCircleRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*LeaveCircleRequest) Descriptor
deprecated
func (*LeaveCircleRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaveCircleRequest.ProtoReflect.Descriptor instead.
func (*LeaveCircleRequest) GetCircleId ¶
func (x *LeaveCircleRequest) GetCircleId() string
func (*LeaveCircleRequest) GetUserId ¶
func (x *LeaveCircleRequest) GetUserId() string
func (*LeaveCircleRequest) ProtoMessage ¶
func (*LeaveCircleRequest) ProtoMessage()
func (*LeaveCircleRequest) ProtoReflect ¶
func (x *LeaveCircleRequest) ProtoReflect() protoreflect.Message
func (*LeaveCircleRequest) Reset ¶
func (x *LeaveCircleRequest) Reset()
func (*LeaveCircleRequest) String ¶
func (x *LeaveCircleRequest) String() string
type LikePostByUserRequest ¶
type LikePostByUserRequest struct { PostId string `protobuf:"bytes,1,opt,name=postId,proto3" json:"postId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*LikePostByUserRequest) Descriptor
deprecated
func (*LikePostByUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use LikePostByUserRequest.ProtoReflect.Descriptor instead.
func (*LikePostByUserRequest) GetPostId ¶
func (x *LikePostByUserRequest) GetPostId() string
func (*LikePostByUserRequest) GetUserId ¶
func (x *LikePostByUserRequest) GetUserId() string
func (*LikePostByUserRequest) ProtoMessage ¶
func (*LikePostByUserRequest) ProtoMessage()
func (*LikePostByUserRequest) ProtoReflect ¶
func (x *LikePostByUserRequest) ProtoReflect() protoreflect.Message
func (*LikePostByUserRequest) Reset ¶
func (x *LikePostByUserRequest) Reset()
func (*LikePostByUserRequest) String ¶
func (x *LikePostByUserRequest) String() string
type ListCirclesResponse ¶
type ListCirclesResponse struct { Circles []*Circle `protobuf:"bytes,1,rep,name=circles,proto3" json:"circles,omitempty"` // contains filtered or unexported fields }
func (*ListCirclesResponse) Descriptor
deprecated
func (*ListCirclesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCirclesResponse.ProtoReflect.Descriptor instead.
func (*ListCirclesResponse) GetCircles ¶
func (x *ListCirclesResponse) GetCircles() []*Circle
func (*ListCirclesResponse) ProtoMessage ¶
func (*ListCirclesResponse) ProtoMessage()
func (*ListCirclesResponse) ProtoReflect ¶
func (x *ListCirclesResponse) ProtoReflect() protoreflect.Message
func (*ListCirclesResponse) Reset ¶
func (x *ListCirclesResponse) Reset()
func (*ListCirclesResponse) String ¶
func (x *ListCirclesResponse) String() string
type ResultResponse ¶
type ResultResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*ResultResponse) Descriptor
deprecated
func (*ResultResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResultResponse.ProtoReflect.Descriptor instead.
func (*ResultResponse) GetSuccess ¶
func (x *ResultResponse) GetSuccess() bool
func (*ResultResponse) ProtoMessage ¶
func (*ResultResponse) ProtoMessage()
func (*ResultResponse) ProtoReflect ¶
func (x *ResultResponse) ProtoReflect() protoreflect.Message
func (*ResultResponse) Reset ¶
func (x *ResultResponse) Reset()
func (*ResultResponse) String ¶
func (x *ResultResponse) String() string
type SetAuthorBoostRequest ¶
type SetAuthorBoostRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` Boost float64 `protobuf:"fixed64,2,opt,name=boost,proto3" json:"boost,omitempty"` // contains filtered or unexported fields }
func (*SetAuthorBoostRequest) Descriptor
deprecated
func (*SetAuthorBoostRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetAuthorBoostRequest.ProtoReflect.Descriptor instead.
func (*SetAuthorBoostRequest) GetBoost ¶
func (x *SetAuthorBoostRequest) GetBoost() float64
func (*SetAuthorBoostRequest) GetUserId ¶
func (x *SetAuthorBoostRequest) GetUserId() string
func (*SetAuthorBoostRequest) ProtoMessage ¶
func (*SetAuthorBoostRequest) ProtoMessage()
func (*SetAuthorBoostRequest) ProtoReflect ¶
func (x *SetAuthorBoostRequest) ProtoReflect() protoreflect.Message
func (*SetAuthorBoostRequest) Reset ¶
func (x *SetAuthorBoostRequest) Reset()
func (*SetAuthorBoostRequest) String ¶
func (x *SetAuthorBoostRequest) String() string
type SetCircleBoostRequest ¶
type SetCircleBoostRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` Boost float64 `protobuf:"fixed64,2,opt,name=boost,proto3" json:"boost,omitempty"` // contains filtered or unexported fields }
func (*SetCircleBoostRequest) Descriptor
deprecated
func (*SetCircleBoostRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetCircleBoostRequest.ProtoReflect.Descriptor instead.
func (*SetCircleBoostRequest) GetBoost ¶
func (x *SetCircleBoostRequest) GetBoost() float64
func (*SetCircleBoostRequest) GetCircleId ¶
func (x *SetCircleBoostRequest) GetCircleId() string
func (*SetCircleBoostRequest) ProtoMessage ¶
func (*SetCircleBoostRequest) ProtoMessage()
func (*SetCircleBoostRequest) ProtoReflect ¶
func (x *SetCircleBoostRequest) ProtoReflect() protoreflect.Message
func (*SetCircleBoostRequest) Reset ¶
func (x *SetCircleBoostRequest) Reset()
func (*SetCircleBoostRequest) String ¶
func (x *SetCircleBoostRequest) String() string
type SetCircleDefaultRequest ¶
type SetCircleDefaultRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"` IsDefault bool `protobuf:"varint,2,opt,name=isDefault,proto3" json:"isDefault,omitempty"` // contains filtered or unexported fields }
func (*SetCircleDefaultRequest) Descriptor
deprecated
func (*SetCircleDefaultRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetCircleDefaultRequest.ProtoReflect.Descriptor instead.
func (*SetCircleDefaultRequest) GetCircleId ¶
func (x *SetCircleDefaultRequest) GetCircleId() string
func (*SetCircleDefaultRequest) GetIsDefault ¶
func (x *SetCircleDefaultRequest) GetIsDefault() bool
func (*SetCircleDefaultRequest) ProtoMessage ¶
func (*SetCircleDefaultRequest) ProtoMessage()
func (*SetCircleDefaultRequest) ProtoReflect ¶
func (x *SetCircleDefaultRequest) ProtoReflect() protoreflect.Message
func (*SetCircleDefaultRequest) Reset ¶
func (x *SetCircleDefaultRequest) Reset()
func (*SetCircleDefaultRequest) String ¶
func (x *SetCircleDefaultRequest) String() string
type UnimplementedAdminAPIServer ¶
type UnimplementedAdminAPIServer struct { }
UnimplementedAdminAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedAdminAPIServer) AddCircle ¶
func (UnimplementedAdminAPIServer) AddCircle(context.Context, *Circle) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) AddUserToCircle ¶
func (UnimplementedAdminAPIServer) AddUserToCircle(context.Context, *AddUserToCircleRequest) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) DeleteCircle ¶
func (UnimplementedAdminAPIServer) DeleteCircle(context.Context, *DeleteCircleRequest) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) GeneratePost ¶
func (UnimplementedAdminAPIServer) GeneratePost(context.Context, *GeneratePostRequest) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) ImportPostsAuthors ¶
func (UnimplementedAdminAPIServer) JoinCircle ¶
func (UnimplementedAdminAPIServer) JoinCircle(context.Context, *JoinCircleRequest) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) LeaveCircle ¶
func (UnimplementedAdminAPIServer) LeaveCircle(context.Context, *LeaveCircleRequest) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) LikePostByUser ¶
func (UnimplementedAdminAPIServer) LikePostByUser(context.Context, *LikePostByUserRequest) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) ListCircles ¶
func (UnimplementedAdminAPIServer) ListCircles(context.Context, *UseEmpty) (*ListCirclesResponse, error)
func (UnimplementedAdminAPIServer) ResetFeeds ¶
func (UnimplementedAdminAPIServer) ResetFeeds(context.Context, *UseEmpty) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) SetAuthorBoost ¶
func (UnimplementedAdminAPIServer) SetAuthorBoost(context.Context, *SetAuthorBoostRequest) (*UseEmpty, error)
func (UnimplementedAdminAPIServer) SetCircleBoost ¶
func (UnimplementedAdminAPIServer) SetCircleBoost(context.Context, *SetCircleBoostRequest) (*UseEmpty, error)
func (UnimplementedAdminAPIServer) SetCircleDefault ¶
func (UnimplementedAdminAPIServer) SetCircleDefault(context.Context, *SetCircleDefaultRequest) (*UseEmpty, error)
func (UnimplementedAdminAPIServer) UpdatePost ¶
func (UnimplementedAdminAPIServer) UpdatePost(context.Context, *UpdatePostRequest) (*ResultResponse, error)
func (UnimplementedAdminAPIServer) ViewPostByUser ¶
func (UnimplementedAdminAPIServer) ViewPostByUser(context.Context, *ViewPostByUserRequest) (*ResultResponse, error)
type UnsafeAdminAPIServer ¶
type UnsafeAdminAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAdminAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminAPIServer will result in compilation errors.
type UpdatePostRequest ¶
type UpdatePostRequest struct { PostId string `protobuf:"bytes,1,opt,name=postId,proto3" json:"postId,omitempty"` Views uint32 `protobuf:"varint,2,opt,name=views,proto3" json:"views,omitempty"` Likes uint32 `protobuf:"varint,3,opt,name=likes,proto3" json:"likes,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostRequest) Descriptor
deprecated
func (*UpdatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.
func (*UpdatePostRequest) GetLikes ¶
func (x *UpdatePostRequest) GetLikes() uint32
func (*UpdatePostRequest) GetPostId ¶
func (x *UpdatePostRequest) GetPostId() string
func (*UpdatePostRequest) GetViews ¶
func (x *UpdatePostRequest) GetViews() uint32
func (*UpdatePostRequest) ProtoMessage ¶
func (*UpdatePostRequest) ProtoMessage()
func (*UpdatePostRequest) ProtoReflect ¶
func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
func (*UpdatePostRequest) Reset ¶
func (x *UpdatePostRequest) Reset()
func (*UpdatePostRequest) String ¶
func (x *UpdatePostRequest) String() string
type UseEmpty ¶
type UseEmpty struct {
// contains filtered or unexported fields
}
func (*UseEmpty) Descriptor
deprecated
func (*UseEmpty) ProtoMessage ¶
func (*UseEmpty) ProtoMessage()
func (*UseEmpty) ProtoReflect ¶
func (x *UseEmpty) ProtoReflect() protoreflect.Message
type ViewPostByUserRequest ¶
type ViewPostByUserRequest struct { PostId string `protobuf:"bytes,1,opt,name=postId,proto3" json:"postId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ViewPostByUserRequest) Descriptor
deprecated
func (*ViewPostByUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ViewPostByUserRequest.ProtoReflect.Descriptor instead.
func (*ViewPostByUserRequest) GetPostId ¶
func (x *ViewPostByUserRequest) GetPostId() string
func (*ViewPostByUserRequest) GetTotal ¶
func (x *ViewPostByUserRequest) GetTotal() int64
func (*ViewPostByUserRequest) GetUserId ¶
func (x *ViewPostByUserRequest) GetUserId() string
func (*ViewPostByUserRequest) ProtoMessage ¶
func (*ViewPostByUserRequest) ProtoMessage()
func (*ViewPostByUserRequest) ProtoReflect ¶
func (x *ViewPostByUserRequest) ProtoReflect() protoreflect.Message
func (*ViewPostByUserRequest) Reset ¶
func (x *ViewPostByUserRequest) Reset()
func (*ViewPostByUserRequest) String ¶
func (x *ViewPostByUserRequest) String() string