goautowp

package module
v1.83.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 79 Imported by: 0

README

Go Report Card Build Status Quality Gate Status

Documentation

Index

Constants

View Source
const (
	TopicStatusNormal  = "normal"
	TopicStatusClosed  = "closed"
	TopicStatusDeleted = "deleted"
)
View Source
const ArticlesPreviewBaseURL = "/img/articles/preview/"
View Source
const MaxReplies = 500
View Source
const MaxTopicNameLength = 100
View Source
const RUB = "643"

Variables

View Source
var (
	PictureItemType_name = map[int32]string{
		0: "PICTURE_UNKNOWN",
		1: "PICTURE_CONTENT",
		2: "PICTURE_AUTHOR",
		3: "PICTURE_COPYRIGHTS",
	}
	PictureItemType_value = map[string]int32{
		"PICTURE_UNKNOWN":    0,
		"PICTURE_CONTENT":    1,
		"PICTURE_AUTHOR":     2,
		"PICTURE_COPYRIGHTS": 3,
	}
)

Enum value maps for PictureItemType.

View Source
var (
	ItemType_name = map[int32]string{
		0: "ITEM_TYPE_UNKNOWN",
		1: "ITEM_TYPE_VEHICLE",
		2: "ITEM_TYPE_ENGINE",
		3: "ITEM_TYPE_CATEGORY",
		4: "ITEM_TYPE_TWINS",
		5: "ITEM_TYPE_BRAND",
		6: "ITEM_TYPE_FACTORY",
		7: "ITEM_TYPE_MUSEUM",
		8: "ITEM_TYPE_PERSON",
		9: "ITEM_TYPE_COPYRIGHT",
	}
	ItemType_value = map[string]int32{
		"ITEM_TYPE_UNKNOWN":   0,
		"ITEM_TYPE_VEHICLE":   1,
		"ITEM_TYPE_ENGINE":    2,
		"ITEM_TYPE_CATEGORY":  3,
		"ITEM_TYPE_TWINS":     4,
		"ITEM_TYPE_BRAND":     5,
		"ITEM_TYPE_FACTORY":   6,
		"ITEM_TYPE_MUSEUM":    7,
		"ITEM_TYPE_PERSON":    8,
		"ITEM_TYPE_COPYRIGHT": 9,
	}
)

Enum value maps for ItemType.

View Source
var (
	PictureStatus_name = map[int32]string{
		0: "PICTURE_STATUS_UNKNOWN",
		1: "PICTURE_STATUS_ACCEPTED",
		2: "PICTURE_STATUS_REMOVING",
		3: "PICTURE_STATUS_REMOVED",
		4: "PICTURE_STATUS_INBOX",
	}
	PictureStatus_value = map[string]int32{
		"PICTURE_STATUS_UNKNOWN":  0,
		"PICTURE_STATUS_ACCEPTED": 1,
		"PICTURE_STATUS_REMOVING": 2,
		"PICTURE_STATUS_REMOVED":  3,
		"PICTURE_STATUS_INBOX":    4,
	}
)

Enum value maps for PictureStatus.

View Source
var (
	ItemPictureType_name = map[int32]string{
		0: "ITEM_PICTURE_UNKNOWN",
		1: "ITEM_PICTURE_CONTENT",
		2: "ITEM_PICTURE_AUTHOR",
		3: "ITEM_PICTURE_COPYRIGHTS",
	}
	ItemPictureType_value = map[string]int32{
		"ITEM_PICTURE_UNKNOWN":    0,
		"ITEM_PICTURE_CONTENT":    1,
		"ITEM_PICTURE_AUTHOR":     2,
		"ITEM_PICTURE_COPYRIGHTS": 3,
	}
)

Enum value maps for ItemPictureType.

View Source
var (
	CommentsType_name = map[int32]string{
		0: "UNKNOWN",
		1: "PICTURES_TYPE_ID",
		2: "ITEM_TYPE_ID",
		3: "VOTINGS_TYPE_ID",
		4: "ARTICLES_TYPE_ID",
		5: "FORUMS_TYPE_ID",
	}
	CommentsType_value = map[string]int32{
		"UNKNOWN":          0,
		"PICTURES_TYPE_ID": 1,
		"ITEM_TYPE_ID":     2,
		"VOTINGS_TYPE_ID":  3,
		"ARTICLES_TYPE_ID": 4,
		"FORUMS_TYPE_ID":   5,
	}
)

Enum value maps for CommentsType.

View Source
var (
	ModeratorAttention_name = map[int32]string{
		0: "NONE",
		1: "REQUIRED",
		2: "COMPLETE",
	}
	ModeratorAttention_value = map[string]int32{
		"NONE":     0,
		"REQUIRED": 1,
		"COMPLETE": 2,
	}
)

Enum value maps for ModeratorAttention.

View Source
var (
	AttrAttributeType_ID_name = map[int32]string{
		0: "UNKNOWN",
		1: "STRING",
		2: "INTEGER",
		3: "FLOAT",
		4: "TEXT",
		5: "BOOLEAN",
		6: "LIST",
		7: "TREE",
	}
	AttrAttributeType_ID_value = map[string]int32{
		"UNKNOWN": 0,
		"STRING":  1,
		"INTEGER": 2,
		"FLOAT":   3,
		"TEXT":    4,
		"BOOLEAN": 5,
		"LIST":    6,
		"TREE":    7,
	}
)

Enum value maps for AttrAttributeType_ID.

View Source
var (
	PulseRequest_Period_name = map[int32]string{
		0: "DEFAULT",
		1: "YEAR",
		2: "MONTH",
	}
	PulseRequest_Period_value = map[string]int32{
		"DEFAULT": 0,
		"YEAR":    1,
		"MONTH":   2,
	}
)

Enum value maps for PulseRequest_Period.

View Source
var (
	CommentVote_VoteValue_name = map[int32]string{
		0:  "UNKNOWN",
		-1: "POSITIVE",
		1:  "NEGATIVE",
	}
	CommentVote_VoteValue_value = map[string]int32{
		"UNKNOWN":  0,
		"POSITIVE": -1,
		"NEGATIVE": 1,
	}
)

Enum value maps for CommentVote_VoteValue.

View Source
var (
	ListItemsRequest_Order_name = map[int32]string{
		0: "DEFAULT",
		1: "NAME_NAT",
		2: "NAME",
	}
	ListItemsRequest_Order_value = map[string]int32{
		"DEFAULT":  0,
		"NAME_NAT": 1,
		"NAME":     2,
	}
)

Enum value maps for ListItemsRequest_Order.

View Source
var (
	GetMessagesRequest_Order_name = map[int32]string{
		0: "DEFAULT",
		1: "VOTE_DESC",
		2: "VOTE_ASC",
		3: "DATE_DESC",
		4: "DATE_ASC",
	}
	GetMessagesRequest_Order_value = map[string]int32{
		"DEFAULT":   0,
		"VOTE_DESC": 1,
		"VOTE_ASC":  2,
		"DATE_DESC": 3,
		"DATE_ASC":  4,
	}
)

Enum value maps for GetMessagesRequest_Order.

View Source
var Articles_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Articles",
	HandlerType: (*ArticlesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetList",
			Handler:    _Articles_GetList_Handler,
		},
		{
			MethodName: "GetItemByCatname",
			Handler:    _Articles_GetItemByCatname_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Articles_ServiceDesc is the grpc.ServiceDesc for Articles 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 Attrs_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Attrs",
	HandlerType: (*AttrsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAttribute",
			Handler:    _Attrs_GetAttribute_Handler,
		},
		{
			MethodName: "GetAttributes",
			Handler:    _Attrs_GetAttributes_Handler,
		},
		{
			MethodName: "GetAttributeTypes",
			Handler:    _Attrs_GetAttributeTypes_Handler,
		},
		{
			MethodName: "GetListOptions",
			Handler:    _Attrs_GetListOptions_Handler,
		},
		{
			MethodName: "GetUnits",
			Handler:    _Attrs_GetUnits_Handler,
		},
		{
			MethodName: "GetZoneAttributes",
			Handler:    _Attrs_GetZoneAttributes_Handler,
		},
		{
			MethodName: "GetZones",
			Handler:    _Attrs_GetZones_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Attrs_ServiceDesc is the grpc.ServiceDesc for Attrs 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 Autowp_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Autowp",
	HandlerType: (*AutowpServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AclEnforce",
			Handler:    _Autowp_AclEnforce_Handler,
		},
		{
			MethodName: "CreateFeedback",
			Handler:    _Autowp_CreateFeedback_Handler,
		},
		{
			MethodName: "GetBrandIcons",
			Handler:    _Autowp_GetBrandIcons_Handler,
		},
		{
			MethodName: "GetBrandVehicleTypes",
			Handler:    _Autowp_GetBrandVehicleTypes_Handler,
		},
		{
			MethodName: "GetIP",
			Handler:    _Autowp_GetIP_Handler,
		},
		{
			MethodName: "GetPerspectives",
			Handler:    _Autowp_GetPerspectives_Handler,
		},
		{
			MethodName: "GetPerspectivePages",
			Handler:    _Autowp_GetPerspectivePages_Handler,
		},
		{
			MethodName: "GetReCaptchaConfig",
			Handler:    _Autowp_GetReCaptchaConfig_Handler,
		},
		{
			MethodName: "GetSpecs",
			Handler:    _Autowp_GetSpecs_Handler,
		},
		{
			MethodName: "GetVehicleTypes",
			Handler:    _Autowp_GetVehicleTypes_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Autowp_ServiceDesc is the grpc.ServiceDesc for Autowp 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 Comments_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Comments",
	HandlerType: (*CommentsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCommentVotes",
			Handler:    _Comments_GetCommentVotes_Handler,
		},
		{
			MethodName: "Subscribe",
			Handler:    _Comments_Subscribe_Handler,
		},
		{
			MethodName: "UnSubscribe",
			Handler:    _Comments_UnSubscribe_Handler,
		},
		{
			MethodName: "View",
			Handler:    _Comments_View_Handler,
		},
		{
			MethodName: "SetDeleted",
			Handler:    _Comments_SetDeleted_Handler,
		},
		{
			MethodName: "MoveComment",
			Handler:    _Comments_MoveComment_Handler,
		},
		{
			MethodName: "VoteComment",
			Handler:    _Comments_VoteComment_Handler,
		},
		{
			MethodName: "Add",
			Handler:    _Comments_Add_Handler,
		},
		{
			MethodName: "GetMessagePage",
			Handler:    _Comments_GetMessagePage_Handler,
		},
		{
			MethodName: "GetMessage",
			Handler:    _Comments_GetMessage_Handler,
		},
		{
			MethodName: "GetMessages",
			Handler:    _Comments_GetMessages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Comments_ServiceDesc is the grpc.ServiceDesc for Comments 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 Contacts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Contacts",
	HandlerType: (*ContactsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateContact",
			Handler:    _Contacts_CreateContact_Handler,
		},
		{
			MethodName: "DeleteContact",
			Handler:    _Contacts_DeleteContact_Handler,
		},
		{
			MethodName: "GetContact",
			Handler:    _Contacts_GetContact_Handler,
		},
		{
			MethodName: "GetContacts",
			Handler:    _Contacts_GetContacts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Contacts_ServiceDesc is the grpc.ServiceDesc for Contacts 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 Donations_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Donations",
	HandlerType: (*DonationsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVODData",
			Handler:    _Donations_GetVODData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Donations_ServiceDesc is the grpc.ServiceDesc for Donations 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 ErrUserNotFound = errors.New("user not found")
View Source
var Forums_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Forums",
	HandlerType: (*ForumsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserSummary",
			Handler:    _Forums_GetUserSummary_Handler,
		},
		{
			MethodName: "CreateTopic",
			Handler:    _Forums_CreateTopic_Handler,
		},
		{
			MethodName: "CloseTopic",
			Handler:    _Forums_CloseTopic_Handler,
		},
		{
			MethodName: "OpenTopic",
			Handler:    _Forums_OpenTopic_Handler,
		},
		{
			MethodName: "DeleteTopic",
			Handler:    _Forums_DeleteTopic_Handler,
		},
		{
			MethodName: "MoveTopic",
			Handler:    _Forums_MoveTopic_Handler,
		},
		{
			MethodName: "GetTheme",
			Handler:    _Forums_GetTheme_Handler,
		},
		{
			MethodName: "GetThemes",
			Handler:    _Forums_GetThemes_Handler,
		},
		{
			MethodName: "GetTopic",
			Handler:    _Forums_GetTopic_Handler,
		},
		{
			MethodName: "GetLastTopic",
			Handler:    _Forums_GetLastTopic_Handler,
		},
		{
			MethodName: "GetLastMessage",
			Handler:    _Forums_GetLastMessage_Handler,
		},
		{
			MethodName: "GetTopics",
			Handler:    _Forums_GetTopics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Forums_ServiceDesc is the grpc.ServiceDesc for Forums 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 Items_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Items",
	HandlerType: (*ItemsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTopBrandsList",
			Handler:    _Items_GetTopBrandsList_Handler,
		},
		{
			MethodName: "GetTopPersonsList",
			Handler:    _Items_GetTopPersonsList_Handler,
		},
		{
			MethodName: "GetTopFactoriesList",
			Handler:    _Items_GetTopFactoriesList_Handler,
		},
		{
			MethodName: "GetTopCategoriesList",
			Handler:    _Items_GetTopCategoriesList_Handler,
		},
		{
			MethodName: "GetTwinsBrandsList",
			Handler:    _Items_GetTwinsBrandsList_Handler,
		},
		{
			MethodName: "GetTopTwinsBrandsList",
			Handler:    _Items_GetTopTwinsBrandsList_Handler,
		},
		{
			MethodName: "Item",
			Handler:    _Items_Item_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Items_List_Handler,
		},
		{
			MethodName: "GetTree",
			Handler:    _Items_GetTree_Handler,
		},
		{
			MethodName: "GetContentLanguages",
			Handler:    _Items_GetContentLanguages_Handler,
		},
		{
			MethodName: "GetItemLink",
			Handler:    _Items_GetItemLink_Handler,
		},
		{
			MethodName: "GetItemLinks",
			Handler:    _Items_GetItemLinks_Handler,
		},
		{
			MethodName: "DeleteItemLink",
			Handler:    _Items_DeleteItemLink_Handler,
		},
		{
			MethodName: "CreateItemLink",
			Handler:    _Items_CreateItemLink_Handler,
		},
		{
			MethodName: "UpdateItemLink",
			Handler:    _Items_UpdateItemLink_Handler,
		},
		{
			MethodName: "GetItemVehicleTypes",
			Handler:    _Items_GetItemVehicleTypes_Handler,
		},
		{
			MethodName: "GetItemVehicleType",
			Handler:    _Items_GetItemVehicleType_Handler,
		},
		{
			MethodName: "CreateItemVehicleType",
			Handler:    _Items_CreateItemVehicleType_Handler,
		},
		{
			MethodName: "DeleteItemVehicleType",
			Handler:    _Items_DeleteItemVehicleType_Handler,
		},
		{
			MethodName: "GetItemLanguages",
			Handler:    _Items_GetItemLanguages_Handler,
		},
		{
			MethodName: "GetItemParentLanguages",
			Handler:    _Items_GetItemParentLanguages_Handler,
		},
		{
			MethodName: "GetStats",
			Handler:    _Items_GetStats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Items_ServiceDesc is the grpc.ServiceDesc for Items 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 Map_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Map",
	HandlerType: (*MapServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPoints",
			Handler:    _Map_GetPoints_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Map_ServiceDesc is the grpc.ServiceDesc for Map 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 Messaging_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Messaging",
	HandlerType: (*MessagingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMessagesNewCount",
			Handler:    _Messaging_GetMessagesNewCount_Handler,
		},
		{
			MethodName: "GetMessagesSummary",
			Handler:    _Messaging_GetMessagesSummary_Handler,
		},
		{
			MethodName: "DeleteMessage",
			Handler:    _Messaging_DeleteMessage_Handler,
		},
		{
			MethodName: "ClearFolder",
			Handler:    _Messaging_ClearFolder_Handler,
		},
		{
			MethodName: "CreateMessage",
			Handler:    _Messaging_CreateMessage_Handler,
		},
		{
			MethodName: "GetMessages",
			Handler:    _Messaging_GetMessages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Messaging_ServiceDesc is the grpc.ServiceDesc for Messaging 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 Pictures_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Pictures",
	HandlerType: (*PicturesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "View",
			Handler:    _Pictures_View_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Pictures_Vote_Handler,
		},
		{
			MethodName: "CreateModerVoteTemplate",
			Handler:    _Pictures_CreateModerVoteTemplate_Handler,
		},
		{
			MethodName: "DeleteModerVoteTemplate",
			Handler:    _Pictures_DeleteModerVoteTemplate_Handler,
		},
		{
			MethodName: "GetModerVoteTemplates",
			Handler:    _Pictures_GetModerVoteTemplates_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Pictures_ServiceDesc is the grpc.ServiceDesc for Pictures 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 Rating_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Rating",
	HandlerType: (*RatingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserPicturesRating",
			Handler:    _Rating_GetUserPicturesRating_Handler,
		},
		{
			MethodName: "GetUserPicturesRatingBrands",
			Handler:    _Rating_GetUserPicturesRatingBrands_Handler,
		},
		{
			MethodName: "GetUserCommentsRating",
			Handler:    _Rating_GetUserCommentsRating_Handler,
		},
		{
			MethodName: "GetUserCommentsRatingFans",
			Handler:    _Rating_GetUserCommentsRatingFans_Handler,
		},
		{
			MethodName: "GetUserPictureLikesRating",
			Handler:    _Rating_GetUserPictureLikesRating_Handler,
		},
		{
			MethodName: "GetUserPictureLikesRatingFans",
			Handler:    _Rating_GetUserPictureLikesRatingFans_Handler,
		},
		{
			MethodName: "GetUserSpecsRating",
			Handler:    _Rating_GetUserSpecsRating_Handler,
		},
		{
			MethodName: "GetUserSpecsRatingBrands",
			Handler:    _Rating_GetUserSpecsRatingBrands_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Rating_ServiceDesc is the grpc.ServiceDesc for Rating 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 Statistics_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Statistics",
	HandlerType: (*StatisticsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPulse",
			Handler:    _Statistics_GetPulse_Handler,
		},
		{
			MethodName: "GetAboutData",
			Handler:    _Statistics_GetAboutData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Statistics_ServiceDesc is the grpc.ServiceDesc for Statistics 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 Text_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Text",
	HandlerType: (*TextServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetText",
			Handler:    _Text_GetText_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Text_ServiceDesc is the grpc.ServiceDesc for Text 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 Traffic_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Traffic",
	HandlerType: (*TrafficServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddToBlacklist",
			Handler:    _Traffic_AddToBlacklist_Handler,
		},
		{
			MethodName: "AddToWhitelist",
			Handler:    _Traffic_AddToWhitelist_Handler,
		},
		{
			MethodName: "DeleteFromBlacklist",
			Handler:    _Traffic_DeleteFromBlacklist_Handler,
		},
		{
			MethodName: "DeleteFromWhitelist",
			Handler:    _Traffic_DeleteFromWhitelist_Handler,
		},
		{
			MethodName: "GetTop",
			Handler:    _Traffic_GetTop_Handler,
		},
		{
			MethodName: "GetWhitelist",
			Handler:    _Traffic_GetWhitelist_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

Traffic_ServiceDesc is the grpc.ServiceDesc for Traffic 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 Users_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goautowp.Users",
	HandlerType: (*UsersServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DeleteUser",
			Handler:    _Users_DeleteUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _Users_GetUser_Handler,
		},
		{
			MethodName: "Me",
			Handler:    _Users_Me_Handler,
		},
		{
			MethodName: "GetUserPreferences",
			Handler:    _Users_GetUserPreferences_Handler,
		},
		{
			MethodName: "DisableUserCommentsNotifications",
			Handler:    _Users_DisableUserCommentsNotifications_Handler,
		},
		{
			MethodName: "EnableUserCommentsNotifications",
			Handler:    _Users_EnableUserCommentsNotifications_Handler,
		},
		{
			MethodName: "GetUsers",
			Handler:    _Users_GetUsers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spec.proto",
}

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

Functions

func RegisterArticlesServer added in v1.7.0

func RegisterArticlesServer(s grpc.ServiceRegistrar, srv ArticlesServer)

func RegisterAttrsServer added in v1.43.0

func RegisterAttrsServer(s grpc.ServiceRegistrar, srv AttrsServer)

func RegisterAutowpServer

func RegisterAutowpServer(s grpc.ServiceRegistrar, srv AutowpServer)

func RegisterCommentsServer

func RegisterCommentsServer(s grpc.ServiceRegistrar, srv CommentsServer)

func RegisterContactsServer

func RegisterContactsServer(s grpc.ServiceRegistrar, srv ContactsServer)

func RegisterDonationsServer

func RegisterDonationsServer(s grpc.ServiceRegistrar, srv DonationsServer)

func RegisterForumsServer added in v1.23.0

func RegisterForumsServer(s grpc.ServiceRegistrar, srv ForumsServer)

func RegisterItemsServer

func RegisterItemsServer(s grpc.ServiceRegistrar, srv ItemsServer)

func RegisterMapServer

func RegisterMapServer(s grpc.ServiceRegistrar, srv MapServer)

func RegisterMessagingServer

func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)

func RegisterPicturesServer

func RegisterPicturesServer(s grpc.ServiceRegistrar, srv PicturesServer)

func RegisterRatingServer added in v1.76.0

func RegisterRatingServer(s grpc.ServiceRegistrar, srv RatingServer)

func RegisterStatisticsServer

func RegisterStatisticsServer(s grpc.ServiceRegistrar, srv StatisticsServer)

func RegisterTextServer added in v1.30.0

func RegisterTextServer(s grpc.ServiceRegistrar, srv TextServer)

func RegisterTrafficServer

func RegisterTrafficServer(s grpc.ServiceRegistrar, srv TrafficServer)

func RegisterUsersServer

func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)

Types

type APIBanItem

type APIBanItem struct {
	Until    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=until,proto3" json:"until,omitempty"`
	ByUserId int64                  `protobuf:"varint,2,opt,name=by_user_id,json=byUserId,proto3" json:"by_user_id,omitempty"`
	ByUser   *APIUser               `protobuf:"bytes,3,opt,name=by_user,json=byUser,proto3" json:"by_user,omitempty"`
	Reason   string                 `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*APIBanItem) Descriptor deprecated

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

Deprecated: Use APIBanItem.ProtoReflect.Descriptor instead.

func (*APIBanItem) GetByUser

func (x *APIBanItem) GetByUser() *APIUser

func (*APIBanItem) GetByUserId

func (x *APIBanItem) GetByUserId() int64

func (*APIBanItem) GetReason

func (x *APIBanItem) GetReason() string

func (*APIBanItem) GetUntil

func (x *APIBanItem) GetUntil() *timestamppb.Timestamp

func (*APIBanItem) ProtoMessage

func (*APIBanItem) ProtoMessage()

func (*APIBanItem) ProtoReflect

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

func (*APIBanItem) Reset

func (x *APIBanItem) Reset()

func (*APIBanItem) String

func (x *APIBanItem) String() string

type APICommentMessage added in v1.37.0

type APICommentMessage struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UserId    int64                  `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*APICommentMessage) Descriptor deprecated added in v1.37.0

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

Deprecated: Use APICommentMessage.ProtoReflect.Descriptor instead.

func (*APICommentMessage) GetCreatedAt added in v1.37.0

func (x *APICommentMessage) GetCreatedAt() *timestamppb.Timestamp

func (*APICommentMessage) GetId added in v1.37.0

func (x *APICommentMessage) GetId() int64

func (*APICommentMessage) GetUserId added in v1.37.0

func (x *APICommentMessage) GetUserId() int64

func (*APICommentMessage) ProtoMessage added in v1.37.0

func (*APICommentMessage) ProtoMessage()

func (*APICommentMessage) ProtoReflect added in v1.37.0

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

func (*APICommentMessage) Reset added in v1.37.0

func (x *APICommentMessage) Reset()

func (*APICommentMessage) String added in v1.37.0

func (x *APICommentMessage) String() string

type APICommentsMessage added in v1.41.0

type APICommentsMessage struct {
	Id                 int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	TypeId             CommentsType           `protobuf:"varint,2,opt,name=type_id,json=typeId,proto3,enum=goautowp.CommentsType" json:"type_id,omitempty"`
	ItemId             int64                  `protobuf:"varint,3,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	ParentId           int64                  `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	CreatedAt          *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Deleted            bool                   `protobuf:"varint,6,opt,name=deleted,proto3" json:"deleted,omitempty"`
	ModeratorAttention ModeratorAttention     `` /* 149-byte string literal not displayed */
	IsNew              bool                   `protobuf:"varint,8,opt,name=is_new,json=isNew,proto3" json:"is_new,omitempty"`
	AuthorId           int64                  `protobuf:"varint,9,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"`
	Ip                 string                 `protobuf:"bytes,10,opt,name=ip,proto3" json:"ip,omitempty"`
	Text               string                 `protobuf:"bytes,11,opt,name=text,proto3" json:"text,omitempty"`
	Vote               int32                  `protobuf:"varint,12,opt,name=vote,proto3" json:"vote,omitempty"`
	Preview            string                 `protobuf:"bytes,13,opt,name=preview,proto3" json:"preview,omitempty"`
	Route              []string               `protobuf:"bytes,14,rep,name=route,proto3" json:"route,omitempty"`
	UserVote           int32                  `protobuf:"varint,15,opt,name=userVote,proto3" json:"userVote,omitempty"`
	Replies            []*APICommentsMessage  `protobuf:"bytes,16,rep,name=replies,proto3" json:"replies,omitempty"`
	PictureStatus      PictureStatus          `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*APICommentsMessage) Descriptor deprecated added in v1.41.0

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

Deprecated: Use APICommentsMessage.ProtoReflect.Descriptor instead.

func (*APICommentsMessage) GetAuthorId added in v1.41.0

func (x *APICommentsMessage) GetAuthorId() int64

func (*APICommentsMessage) GetCreatedAt added in v1.41.0

func (x *APICommentsMessage) GetCreatedAt() *timestamppb.Timestamp

func (*APICommentsMessage) GetDeleted added in v1.41.0

func (x *APICommentsMessage) GetDeleted() bool

func (*APICommentsMessage) GetId added in v1.41.0

func (x *APICommentsMessage) GetId() int64

func (*APICommentsMessage) GetIp added in v1.41.0

func (x *APICommentsMessage) GetIp() string

func (*APICommentsMessage) GetIsNew added in v1.41.0

func (x *APICommentsMessage) GetIsNew() bool

func (*APICommentsMessage) GetItemId added in v1.41.0

func (x *APICommentsMessage) GetItemId() int64

func (*APICommentsMessage) GetModeratorAttention added in v1.41.0

func (x *APICommentsMessage) GetModeratorAttention() ModeratorAttention

func (*APICommentsMessage) GetParentId added in v1.41.0

func (x *APICommentsMessage) GetParentId() int64

func (*APICommentsMessage) GetPictureStatus added in v1.41.0

func (x *APICommentsMessage) GetPictureStatus() PictureStatus

func (*APICommentsMessage) GetPreview added in v1.41.0

func (x *APICommentsMessage) GetPreview() string

func (*APICommentsMessage) GetReplies added in v1.41.0

func (x *APICommentsMessage) GetReplies() []*APICommentsMessage

func (*APICommentsMessage) GetRoute added in v1.41.0

func (x *APICommentsMessage) GetRoute() []string

func (*APICommentsMessage) GetText added in v1.41.0

func (x *APICommentsMessage) GetText() string

func (*APICommentsMessage) GetTypeId added in v1.41.0

func (x *APICommentsMessage) GetTypeId() CommentsType

func (*APICommentsMessage) GetUserVote added in v1.41.0

func (x *APICommentsMessage) GetUserVote() int32

func (*APICommentsMessage) GetVote added in v1.41.0

func (x *APICommentsMessage) GetVote() int32

func (*APICommentsMessage) ProtoMessage added in v1.41.0

func (*APICommentsMessage) ProtoMessage()

func (*APICommentsMessage) ProtoReflect added in v1.41.0

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

func (*APICommentsMessage) Reset added in v1.41.0

func (x *APICommentsMessage) Reset()

func (*APICommentsMessage) String added in v1.41.0

func (x *APICommentsMessage) String() string

type APICommentsMessagePage added in v1.38.0

type APICommentsMessagePage struct {
	TypeId CommentsType `protobuf:"varint,1,opt,name=type_id,json=typeId,proto3,enum=goautowp.CommentsType" json:"type_id,omitempty"`
	ItemId int64        `protobuf:"varint,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	Page   int32        `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*APICommentsMessagePage) Descriptor deprecated added in v1.38.0

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

Deprecated: Use APICommentsMessagePage.ProtoReflect.Descriptor instead.

func (*APICommentsMessagePage) GetItemId added in v1.38.0

func (x *APICommentsMessagePage) GetItemId() int64

func (*APICommentsMessagePage) GetPage added in v1.38.0

func (x *APICommentsMessagePage) GetPage() int32

func (*APICommentsMessagePage) GetTypeId added in v1.38.0

func (x *APICommentsMessagePage) GetTypeId() CommentsType

func (*APICommentsMessagePage) ProtoMessage added in v1.38.0

func (*APICommentsMessagePage) ProtoMessage()

func (*APICommentsMessagePage) ProtoReflect added in v1.38.0

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

func (*APICommentsMessagePage) Reset added in v1.38.0

func (x *APICommentsMessagePage) Reset()

func (*APICommentsMessagePage) String added in v1.38.0

func (x *APICommentsMessagePage) String() string

type APICommentsMessages added in v1.41.0

type APICommentsMessages struct {
	Items     []*APICommentsMessage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Paginator *Pages                `protobuf:"bytes,2,opt,name=paginator,proto3" json:"paginator,omitempty"`
	// contains filtered or unexported fields
}

func (*APICommentsMessages) Descriptor deprecated added in v1.41.0

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

Deprecated: Use APICommentsMessages.ProtoReflect.Descriptor instead.

func (*APICommentsMessages) GetItems added in v1.41.0

func (x *APICommentsMessages) GetItems() []*APICommentsMessage

func (*APICommentsMessages) GetPaginator added in v1.41.0

func (x *APICommentsMessages) GetPaginator() *Pages

func (*APICommentsMessages) ProtoMessage added in v1.41.0

func (*APICommentsMessages) ProtoMessage()

func (*APICommentsMessages) ProtoReflect added in v1.41.0

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

func (*APICommentsMessages) Reset added in v1.41.0

func (x *APICommentsMessages) Reset()

func (*APICommentsMessages) String added in v1.41.0

func (x *APICommentsMessages) String() string

type APIContentLanguages added in v1.11.0

type APIContentLanguages struct {
	Languages []string `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"`
	// contains filtered or unexported fields
}

func (*APIContentLanguages) Descriptor deprecated added in v1.11.0

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

Deprecated: Use APIContentLanguages.ProtoReflect.Descriptor instead.

func (*APIContentLanguages) GetLanguages added in v1.11.0

func (x *APIContentLanguages) GetLanguages() []string

func (*APIContentLanguages) ProtoMessage added in v1.11.0

func (*APIContentLanguages) ProtoMessage()

func (*APIContentLanguages) ProtoReflect added in v1.11.0

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

func (*APIContentLanguages) Reset added in v1.11.0

func (x *APIContentLanguages) Reset()

func (*APIContentLanguages) String added in v1.11.0

func (x *APIContentLanguages) String() string

type APICreateFeedbackRequest

type APICreateFeedbackRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email   string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Captcha string `protobuf:"bytes,4,opt,name=captcha,proto3" json:"captcha,omitempty"`
	// contains filtered or unexported fields
}

func (*APICreateFeedbackRequest) Descriptor deprecated

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

Deprecated: Use APICreateFeedbackRequest.ProtoReflect.Descriptor instead.

func (*APICreateFeedbackRequest) GetCaptcha

func (x *APICreateFeedbackRequest) GetCaptcha() string

func (*APICreateFeedbackRequest) GetEmail

func (x *APICreateFeedbackRequest) GetEmail() string

func (*APICreateFeedbackRequest) GetMessage

func (x *APICreateFeedbackRequest) GetMessage() string

func (*APICreateFeedbackRequest) GetName

func (x *APICreateFeedbackRequest) GetName() string

func (*APICreateFeedbackRequest) ProtoMessage

func (*APICreateFeedbackRequest) ProtoMessage()

func (*APICreateFeedbackRequest) ProtoReflect

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

func (*APICreateFeedbackRequest) Reset

func (x *APICreateFeedbackRequest) Reset()

func (*APICreateFeedbackRequest) String

func (x *APICreateFeedbackRequest) String() string

type APICreateItemLinkResponse added in v1.28.0

type APICreateItemLinkResponse struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*APICreateItemLinkResponse) Descriptor deprecated added in v1.28.0

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

Deprecated: Use APICreateItemLinkResponse.ProtoReflect.Descriptor instead.