v1

package
v0.2.146 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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

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) Descriptor() ([]byte, []int)

Deprecated: Use Circle.ProtoReflect.Descriptor instead.

func (*Circle) GetCircleId

func (x *Circle) GetCircleId() string

func (*Circle) GetGroupId

func (x *Circle) GetGroupId() string

func (*Circle) GetName

func (x *Circle) GetName() string

func (*Circle) ProtoMessage

func (*Circle) ProtoMessage()

func (*Circle) ProtoReflect

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

func (*Circle) Reset

func (x *Circle) Reset()

func (*Circle) String

func (x *Circle) String() string

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) AddUserToCircle

func (UnimplementedAdminAPIServer) DeleteCircle

func (UnimplementedAdminAPIServer) GeneratePost

func (UnimplementedAdminAPIServer) ImportPostsAuthors

func (UnimplementedAdminAPIServer) JoinCircle

func (UnimplementedAdminAPIServer) LeaveCircle

func (UnimplementedAdminAPIServer) LikePostByUser

func (UnimplementedAdminAPIServer) ListCircles

func (UnimplementedAdminAPIServer) ResetFeeds

func (UnimplementedAdminAPIServer) SetAuthorBoost

func (UnimplementedAdminAPIServer) SetCircleBoost

func (UnimplementedAdminAPIServer) SetCircleDefault

func (UnimplementedAdminAPIServer) UpdatePost

func (UnimplementedAdminAPIServer) ViewPostByUser

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) Descriptor() ([]byte, []int)

Deprecated: Use UseEmpty.ProtoReflect.Descriptor instead.

func (*UseEmpty) ProtoMessage

func (*UseEmpty) ProtoMessage()

func (*UseEmpty) ProtoReflect

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

func (*UseEmpty) Reset

func (x *UseEmpty) Reset()

func (*UseEmpty) String

func (x *UseEmpty) String() string

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

Directories

Path Synopsis
Package admin_mock is a generated GoMock package.
Package admin_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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