goautowp

package module
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 72 Imported by: 0

README

Build Status Quality Gate Status

Documentation

Index

Constants

View Source
const ArticlesPreviewBaseURL = "/img/articles/preview/"

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 (
	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 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 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: "GetForumsUserSummary",
			Handler:    _Autowp_GetForumsUserSummary_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,
		},
	},
	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 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: "GetTopTwinsBrandsList",
			Handler:    _Items_GetTopTwinsBrandsList_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Items_List_Handler,
		},
		{
			MethodName: "GetTree",
			Handler:    _Items_GetTree_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 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 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,
		},
	},
	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 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 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 RegisterStatisticsServer

func RegisterStatisticsServer(s grpc.ServiceRegistrar, srv StatisticsServer)

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    *timestamp.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() *timestamp.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 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 APIDeleteUserRequest

type APIDeleteUserRequest struct {
	UserId   int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*APIDeleteUserRequest) Descriptor deprecated

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

Deprecated: Use APIDeleteUserRequest.ProtoReflect.Descriptor instead.

func (*APIDeleteUserRequest) GetPassword

func (x *APIDeleteUserRequest) GetPassword() string

func (*APIDeleteUserRequest) GetUserId

func (x *APIDeleteUserRequest) GetUserId() int64

func (*APIDeleteUserRequest) ProtoMessage

func (*APIDeleteUserRequest) ProtoMessage()

func (*APIDeleteUserRequest) ProtoReflect

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

func (*APIDeleteUserRequest) Reset

func (x *APIDeleteUserRequest) Reset()

func (*APIDeleteUserRequest) String

func (x *APIDeleteUserRequest) String() string

type APIForumsUserSummary

type APIForumsUserSummary struct {
	SubscriptionsCount int32 `protobuf:"varint,1,opt,name=subscriptionsCount,proto3" json:"subscriptionsCount,omitempty"`
	// contains filtered or unexported fields
}

func (*APIForumsUserSummary) Descriptor deprecated

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

Deprecated: Use APIForumsUserSummary.ProtoReflect.Descriptor instead.

func (*APIForumsUserSummary) GetSubscriptionsCount

func (x *APIForumsUserSummary) GetSubscriptionsCount() int32

func (*APIForumsUserSummary) ProtoMessage

func (*APIForumsUserSummary) ProtoMessage()

func (*APIForumsUserSummary) ProtoReflect

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

func (*APIForumsUserSummary) Reset

func (x *APIForumsUserSummary) Reset()

func (*APIForumsUserSummary) String

func (x *APIForumsUserSummary) String() string

type APIGetIPRequest

type APIGetIPRequest struct {
	Ip     string   `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*APIGetIPRequest) Descriptor deprecated

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

Deprecated: Use APIGetIPRequest.ProtoReflect.Descriptor instead.

func (*APIGetIPRequest) GetFields

func (x *APIGetIPRequest) GetFields() []string

func (*APIGetIPRequest) GetIp

func (x *APIGetIPRequest) GetIp() string

func (*APIGetIPRequest) ProtoMessage

func (*APIGetIPRequest) ProtoMessage()

func (*APIGetIPRequest) ProtoReflect

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

func (*APIGetIPRequest) Reset

func (x *APIGetIPRequest) Reset()

func (*APIGetIPRequest) String

func (x *APIGetIPRequest) String() string

type APIGetUserRequest

type APIGetUserRequest struct {
	UserId int64    `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*APIGetUserRequest) Descriptor deprecated

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

Deprecated: Use APIGetUserRequest.ProtoReflect.Descriptor instead.

func (*APIGetUserRequest) GetFields

func (x *APIGetUserRequest) GetFields() []string

func (*APIGetUserRequest) GetUserId

func (x *APIGetUserRequest) GetUserId() int64

func (*APIGetUserRequest) ProtoMessage

func (*APIGetUserRequest) ProtoMessage()

func (*APIGetUserRequest) ProtoReflect

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

func (*APIGetUserRequest) Reset

func (x *APIGetUserRequest) Reset()

func (*APIGetUserRequest) String

func (x *APIGetUserRequest) String() string

type APIIP

type APIIP struct {
	Address   string       `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Hostname  string       `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Blacklist *APIBanItem  `protobuf:"bytes,3,opt,name=blacklist,proto3" json:"blacklist,omitempty"`
	Rights    *APIIPRights `protobuf:"bytes,4,opt,name=rights,proto3" json:"rights,omitempty"`
	// contains filtered or unexported fields
}

func (*APIIP) Descriptor deprecated

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

Deprecated: Use APIIP.ProtoReflect.Descriptor instead.

func (*APIIP) GetAddress

func (x *APIIP) GetAddress() string

func (*APIIP) GetBlacklist

func (x *APIIP) GetBlacklist() *APIBanItem

func (*APIIP) GetHostname

func (x *APIIP) GetHostname() string

func (*APIIP) GetRights

func (x *APIIP) GetRights() *APIIPRights

func (*APIIP) ProtoMessage

func (*APIIP) ProtoMessage()

func (*APIIP) ProtoReflect

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

func (*APIIP) Reset

func (x *APIIP) Reset()

func (*APIIP) String

func (x *APIIP) String() string

type APIIPRights

type APIIPRights struct {
	AddToBlacklist      bool `protobuf:"varint,1,opt,name=add_to_blacklist,json=addToBlacklist,proto3" json:"add_to_blacklist,omitempty"`
	RemoveFromBlacklist bool `protobuf:"varint,2,opt,name=remove_from_blacklist,json=removeFromBlacklist,proto3" json:"remove_from_blacklist,omitempty"`
	// contains filtered or unexported fields
}

func (*APIIPRights) Descriptor deprecated

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

Deprecated: Use APIIPRights.ProtoReflect.Descriptor instead.

func (*APIIPRights) GetAddToBlacklist

func (x *APIIPRights) GetAddToBlacklist() bool

func (*APIIPRights) GetRemoveFromBlacklist

func (x *APIIPRights) GetRemoveFromBlacklist() bool

func (*APIIPRights) ProtoMessage

func (*APIIPRights) ProtoMessage()

func (*APIIPRights) ProtoReflect

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

func (*APIIPRights) Reset

func (x *APIIPRights) Reset()

func (*APIIPRights) String

func (x *APIIPRights) String() string

type APIImage

type APIImage struct {
	Id       int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Src      string `protobuf:"bytes,2,opt,name=src,proto3" json:"src,omitempty"`
	Width    int32  `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Height   int32  `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Filesize int32  `protobuf:"varint,5,opt,name=filesize,proto3" json:"filesize,omitempty"`
	// contains filtered or unexported fields
}

func APIImageToGRPC

func APIImageToGRPC(image *users.APIImage) *APIImage

func (*APIImage) Descriptor deprecated

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

Deprecated: Use APIImage.ProtoReflect.Descriptor instead.

func (*APIImage) GetFilesize

func (x *APIImage) GetFilesize() int32

func (*APIImage) GetHeight

func (x *APIImage) GetHeight() int32

func (*APIImage) GetId

func (x *APIImage) GetId() int32

func (*APIImage) GetSrc

func (x *APIImage) GetSrc() string

func (*APIImage) GetWidth

func (x *APIImage) GetWidth() int32

func (*APIImage) ProtoMessage

func (*APIImage) ProtoMessage()

func (*APIImage) ProtoReflect

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

func (*APIImage) Reset

func (x *APIImage) Reset()

func (*APIImage) String

func (x *APIImage) String() string

type APIItem

type APIItem struct {
	Id      int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Catname string `protobuf:"bytes,2,opt,name=catname,proto3" json:"catname,omitempty"`
	Name    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*APIItem) Descriptor deprecated

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

Deprecated: Use APIItem.ProtoReflect.Descriptor instead.

func (*APIItem) GetCatname

func (x *APIItem) GetCatname() string

func (*APIItem) GetId

func (x *APIItem) GetId() int64

func (*APIItem) GetName

func (x *APIItem) GetName() string

func (*APIItem) ProtoMessage

func (*APIItem) ProtoMessage()

func (*APIItem) ProtoReflect

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

func (*APIItem) Reset

func (x *APIItem) Reset()

func (*APIItem) String

func (x *APIItem) String() string

type APIItemList

type APIItemList struct {
	Items []*APIItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*APIItemList) Descriptor deprecated

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

Deprecated: Use APIItemList.ProtoReflect.Descriptor instead.

func (*APIItemList) GetItems

func (x *APIItemList) GetItems() []*APIItem

func (*APIItemList) ProtoMessage

func (*APIItemList) ProtoMessage()

func (*APIItemList) ProtoReflect

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

func (*APIItemList) Reset

func (x *APIItemList) Reset()

func (*APIItemList) String

func (x *APIItemList) String() string

type APIMeRequest

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

func (*APIMeRequest) Descriptor deprecated

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

Deprecated: Use APIMeRequest.ProtoReflect.Descriptor instead.

func (*APIMeRequest) GetFields

func (x *APIMeRequest) GetFields() []string

func (*APIMeRequest) ProtoMessage

func (*APIMeRequest) ProtoMessage()

func (*APIMeRequest) ProtoReflect

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

func (*APIMeRequest) Reset

func (x *APIMeRequest) Reset()

func (*APIMeRequest) String

func (x *APIMeRequest) String() string

type APIMessage

type APIMessage struct {
	Id               int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Text             string               `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	IsNew            bool                 `protobuf:"varint,3,opt,name=is_new,json=isNew,proto3" json:"is_new,omitempty"`
	CanDelete        bool                 `protobuf:"varint,4,opt,name=can_delete,json=canDelete,proto3" json:"can_delete,omitempty"`
	CanReply         bool                 `protobuf:"varint,5,opt,name=can_reply,json=canReply,proto3" json:"can_reply,omitempty"`
	Date             *timestamp.Timestamp `protobuf:"bytes,6,opt,name=date,proto3" json:"date,omitempty"`
	AllMessagesLink  bool                 `protobuf:"varint,7,opt,name=all_messages_link,json=allMessagesLink,proto3" json:"all_messages_link,omitempty"`
	DialogCount      int32                `protobuf:"varint,8,opt,name=dialog_count,json=dialogCount,proto3" json:"dialog_count,omitempty"`
	AuthorId         int64                `protobuf:"varint,9,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"`
	ToUserId         int64                `protobuf:"varint,10,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	DialogWithUserId int64                `protobuf:"varint,11,opt,name=dialog_with_user_id,json=dialogWithUserId,proto3" json:"dialog_with_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*APIMessage) Descriptor deprecated

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

Deprecated: Use APIMessage.ProtoReflect.Descriptor instead.

func (x *APIMessage) GetAllMessagesLink() bool

func (*APIMessage) GetAuthorId

func (x *APIMessage) GetAuthorId() int64

func (*APIMessage) GetCanDelete

func (x *APIMessage) GetCanDelete() bool

func (*APIMessage) GetCanReply

func (x *APIMessage) GetCanReply() bool

func (*APIMessage) GetDate

func (x *APIMessage) GetDate() *timestamp.Timestamp

func (*APIMessage) GetDialogCount

func (x *APIMessage) GetDialogCount() int32

func (*APIMessage) GetDialogWithUserId

func (x *APIMessage) GetDialogWithUserId() int64

func (*APIMessage) GetId

func (x *APIMessage) GetId() int64

func (*APIMessage) GetIsNew

func (x *APIMessage) GetIsNew() bool

func (*APIMessage) GetText

func (x *APIMessage) GetText() string

func (*APIMessage) GetToUserId

func (x *APIMessage) GetToUserId() int64

func (*APIMessage) ProtoMessage

func (*APIMessage) ProtoMessage()

func (*APIMessage) ProtoReflect

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

func (*APIMessage) Reset

func (x *APIMessage) Reset()

func (*APIMessage) String

func (x *APIMessage) String() string

type APIMessageNewCount

type APIMessageNewCount struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*APIMessageNewCount) Descriptor deprecated

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

Deprecated: Use APIMessageNewCount.ProtoReflect.Descriptor instead.

func (*APIMessageNewCount) GetCount

func (x *APIMessageNewCount) GetCount() int32

func (*APIMessageNewCount) ProtoMessage

func (*APIMessageNewCount) ProtoMessage()

func (*APIMessageNewCount) ProtoReflect

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

func (*APIMessageNewCount) Reset

func (x *APIMessageNewCount) Reset()

func (*APIMessageNewCount) String

func (x *APIMessageNewCount) String() string

type APIMessageSummary

type APIMessageSummary struct {
	InboxCount     int32 `protobuf:"varint,1,opt,name=inbox_count,json=inboxCount,proto3" json:"inbox_count,omitempty"`
	InboxNewCount  int32 `protobuf:"varint,2,opt,name=inbox_new_count,json=inboxNewCount,proto3" json:"inbox_new_count,omitempty"`
	SentCount      int32 `protobuf:"varint,3,opt,name=sent_count,json=sentCount,proto3" json:"sent_count,omitempty"`
	SystemCount    int32 `protobuf:"varint,4,opt,name=system_count,json=systemCount,proto3" json:"system_count,omitempty"`
	SystemNewCount int32 `protobuf:"varint,5,opt,name=system_new_count,json=systemNewCount,proto3" json:"system_new_count,omitempty"`
	// contains filtered or unexported fields
}

func (*APIMessageSummary) Descriptor deprecated

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

Deprecated: Use APIMessageSummary.ProtoReflect.Descriptor instead.

func (*APIMessageSummary) GetInboxCount

func (x *APIMessageSummary) GetInboxCount() int32

func (*APIMessageSummary) GetInboxNewCount

func (x *APIMessageSummary) GetInboxNewCount() int32

func (*APIMessageSummary) GetSentCount

func (x *APIMessageSummary) GetSentCount() int32

func (*APIMessageSummary) GetSystemCount

func (x *APIMessageSummary) GetSystemCount() int32

func (*APIMessageSummary) GetSystemNewCount

func (x *APIMessageSummary) GetSystemNewCount() int32

func (*APIMessageSummary) ProtoMessage

func (*APIMessageSummary) ProtoMessage()

func (*APIMessageSummary) ProtoReflect

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

func (*APIMessageSummary) Reset

func (x *APIMessageSummary) Reset()

func (*APIMessageSummary) String

func (x *APIMessageSummary) String() string

type APITopBrandsList

type APITopBrandsList struct {
	Brands []*APITopBrandsListItem `protobuf:"bytes,1,rep,name=brands,proto3" json:"brands,omitempty"`
	Total  int32                   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopBrandsList) Descriptor deprecated

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

Deprecated: Use APITopBrandsList.ProtoReflect.Descriptor instead.

func (*APITopBrandsList) GetBrands

func (x *APITopBrandsList) GetBrands() []*APITopBrandsListItem

func (*APITopBrandsList) GetTotal

func (x *APITopBrandsList) GetTotal() int32

func (*APITopBrandsList) ProtoMessage

func (*APITopBrandsList) ProtoMessage()

func (*APITopBrandsList) ProtoReflect

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

func (*APITopBrandsList) Reset

func (x *APITopBrandsList) Reset()

func (*APITopBrandsList) String

func (x *APITopBrandsList) String() string

type APITopBrandsListItem

type APITopBrandsListItem struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Catname       string `protobuf:"bytes,2,opt,name=catname,proto3" json:"catname,omitempty"`
	Name          string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	ItemsCount    int32  `protobuf:"varint,4,opt,name=items_count,json=itemsCount,proto3" json:"items_count,omitempty"`
	NewItemsCount int32  `protobuf:"varint,5,opt,name=new_items_count,json=newItemsCount,proto3" json:"new_items_count,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopBrandsListItem) Descriptor deprecated

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

Deprecated: Use APITopBrandsListItem.ProtoReflect.Descriptor instead.

func (*APITopBrandsListItem) GetCatname

func (x *APITopBrandsListItem) GetCatname() string

func (*APITopBrandsListItem) GetId

func (x *APITopBrandsListItem) GetId() int64

func (*APITopBrandsListItem) GetItemsCount

func (x *APITopBrandsListItem) GetItemsCount() int32

func (*APITopBrandsListItem) GetName

func (x *APITopBrandsListItem) GetName() string

func (*APITopBrandsListItem) GetNewItemsCount

func (x *APITopBrandsListItem) GetNewItemsCount() int32

func (*APITopBrandsListItem) ProtoMessage

func (*APITopBrandsListItem) ProtoMessage()

func (*APITopBrandsListItem) ProtoReflect

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

func (*APITopBrandsListItem) Reset

func (x *APITopBrandsListItem) Reset()

func (*APITopBrandsListItem) String

func (x *APITopBrandsListItem) String() string

type APITopCategoriesList

type APITopCategoriesList struct {
	Items []*APITopCategoriesListItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopCategoriesList) Descriptor deprecated

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

Deprecated: Use APITopCategoriesList.ProtoReflect.Descriptor instead.

func (*APITopCategoriesList) GetItems

func (*APITopCategoriesList) ProtoMessage

func (*APITopCategoriesList) ProtoMessage()

func (*APITopCategoriesList) ProtoReflect

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

func (*APITopCategoriesList) Reset

func (x *APITopCategoriesList) Reset()

func (*APITopCategoriesList) String

func (x *APITopCategoriesList) String() string

type APITopCategoriesListItem

type APITopCategoriesListItem struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Catname  string `protobuf:"bytes,3,opt,name=catname,proto3" json:"catname,omitempty"`
	Count    int32  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	NewCount int32  `protobuf:"varint,5,opt,name=new_count,json=newCount,proto3" json:"new_count,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopCategoriesListItem) Descriptor deprecated

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

Deprecated: Use APITopCategoriesListItem.ProtoReflect.Descriptor instead.

func (*APITopCategoriesListItem) GetCatname

func (x *APITopCategoriesListItem) GetCatname() string

func (*APITopCategoriesListItem) GetCount

func (x *APITopCategoriesListItem) GetCount() int32

func (*APITopCategoriesListItem) GetId

func (x *APITopCategoriesListItem) GetId() int64

func (*APITopCategoriesListItem) GetName

func (x *APITopCategoriesListItem) GetName() string

func (*APITopCategoriesListItem) GetNewCount

func (x *APITopCategoriesListItem) GetNewCount() int32

func (*APITopCategoriesListItem) ProtoMessage

func (*APITopCategoriesListItem) ProtoMessage()

func (*APITopCategoriesListItem) ProtoReflect

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

func (*APITopCategoriesListItem) Reset

func (x *APITopCategoriesListItem) Reset()

func (*APITopCategoriesListItem) String

func (x *APITopCategoriesListItem) String() string

type APITopFactoriesList

type APITopFactoriesList struct {
	Items []*APITopFactoriesListItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopFactoriesList) Descriptor deprecated

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

Deprecated: Use APITopFactoriesList.ProtoReflect.Descriptor instead.

func (*APITopFactoriesList) GetItems

func (*APITopFactoriesList) ProtoMessage

func (*APITopFactoriesList) ProtoMessage()

func (*APITopFactoriesList) ProtoReflect

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

func (*APITopFactoriesList) Reset

func (x *APITopFactoriesList) Reset()

func (*APITopFactoriesList) String

func (x *APITopFactoriesList) String() string

type APITopFactoriesListItem

type APITopFactoriesListItem struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Count    int32  `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	NewCount int32  `protobuf:"varint,4,opt,name=new_count,json=newCount,proto3" json:"new_count,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopFactoriesListItem) Descriptor deprecated

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

Deprecated: Use APITopFactoriesListItem.ProtoReflect.Descriptor instead.

func (*APITopFactoriesListItem) GetCount

func (x *APITopFactoriesListItem) GetCount() int32

func (*APITopFactoriesListItem) GetId

func (x *APITopFactoriesListItem) GetId() int64

func (*APITopFactoriesListItem) GetName

func (x *APITopFactoriesListItem) GetName() string

func (*APITopFactoriesListItem) GetNewCount

func (x *APITopFactoriesListItem) GetNewCount() int32

func (*APITopFactoriesListItem) ProtoMessage

func (*APITopFactoriesListItem) ProtoMessage()

func (*APITopFactoriesListItem) ProtoReflect

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

func (*APITopFactoriesListItem) Reset

func (x *APITopFactoriesListItem) Reset()

func (*APITopFactoriesListItem) String

func (x *APITopFactoriesListItem) String() string

type APITopPersonsList

type APITopPersonsList struct {
	Items []*APITopPersonsListItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopPersonsList) Descriptor deprecated

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

Deprecated: Use APITopPersonsList.ProtoReflect.Descriptor instead.

func (*APITopPersonsList) GetItems

func (x *APITopPersonsList) GetItems() []*APITopPersonsListItem

func (*APITopPersonsList) ProtoMessage

func (*APITopPersonsList) ProtoMessage()

func (*APITopPersonsList) ProtoReflect

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

func (*APITopPersonsList) Reset

func (x *APITopPersonsList) Reset()

func (*APITopPersonsList) String

func (x *APITopPersonsList) String() string

type APITopPersonsListItem

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

func (*APITopPersonsListItem) Descriptor deprecated

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

Deprecated: Use APITopPersonsListItem.ProtoReflect.Descriptor instead.

func (*APITopPersonsListItem) GetId

func (x *APITopPersonsListItem) GetId() int64

func (*APITopPersonsListItem) GetName

func (x *APITopPersonsListItem) GetName() string

func (*APITopPersonsListItem) ProtoMessage

func (*APITopPersonsListItem) ProtoMessage()

func (*APITopPersonsListItem) ProtoReflect

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

func (*APITopPersonsListItem) Reset

func (x *APITopPersonsListItem) Reset()

func (*APITopPersonsListItem) String

func (x *APITopPersonsListItem) String() string

type APITopTwinsBrandsList

type APITopTwinsBrandsList struct {
	Items []*APITopTwinsBrandsListItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Count int32                        `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopTwinsBrandsList) Descriptor deprecated

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

Deprecated: Use APITopTwinsBrandsList.ProtoReflect.Descriptor instead.

func (*APITopTwinsBrandsList) GetCount

func (x *APITopTwinsBrandsList) GetCount() int32

func (*APITopTwinsBrandsList) GetItems

func (*APITopTwinsBrandsList) ProtoMessage

func (*APITopTwinsBrandsList) ProtoMessage()

func (*APITopTwinsBrandsList) ProtoReflect

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

func (*APITopTwinsBrandsList) Reset

func (x *APITopTwinsBrandsList) Reset()

func (*APITopTwinsBrandsList) String

func (x *APITopTwinsBrandsList) String() string

type APITopTwinsBrandsListItem

type APITopTwinsBrandsListItem struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Catname  string `protobuf:"bytes,3,opt,name=catname,proto3" json:"catname,omitempty"`
	Count    int32  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	NewCount int32  `protobuf:"varint,5,opt,name=new_count,json=newCount,proto3" json:"new_count,omitempty"`
	// contains filtered or unexported fields
}

func (*APITopTwinsBrandsListItem) Descriptor deprecated

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

Deprecated: Use APITopTwinsBrandsListItem.ProtoReflect.Descriptor instead.

func (*APITopTwinsBrandsListItem) GetCatname

func (x *APITopTwinsBrandsListItem) GetCatname() string

func (*APITopTwinsBrandsListItem) GetCount

func (x *APITopTwinsBrandsListItem) GetCount() int32

func (*APITopTwinsBrandsListItem) GetId

func (x *APITopTwinsBrandsListItem) GetId() int64

func (*APITopTwinsBrandsListItem) GetName

func (x *APITopTwinsBrandsListItem) GetName() string

func (*APITopTwinsBrandsListItem) GetNewCount

func (x *APITopTwinsBrandsListItem) GetNewCount() int32

func (*APITopTwinsBrandsListItem) ProtoMessage

func (*APITopTwinsBrandsListItem) ProtoMessage()

func (*APITopTwinsBrandsListItem) ProtoReflect

func (*APITopTwinsBrandsListItem) Reset

func (x *APITopTwinsBrandsListItem) Reset()

func (*APITopTwinsBrandsListItem) String

func (x *APITopTwinsBrandsListItem) String() string

type APITrafficTopItem

type APITrafficTopItem struct {
	Ip          string      `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Count       int32       `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Ban         *APIBanItem `protobuf:"bytes,3,opt,name=ban,proto3" json:"ban,omitempty"`
	InWhitelist bool        `protobuf:"varint,4,opt,name=in_whitelist,json=inWhitelist,proto3" json:"in_whitelist,omitempty"`
	WhoisUrl    string      `protobuf:"bytes,5,opt,name=whois_url,json=whoisUrl,proto3" json:"whois_url,omitempty"`
	// contains filtered or unexported fields
}

func (*APITrafficTopItem) Descriptor deprecated

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

Deprecated: Use APITrafficTopItem.ProtoReflect.Descriptor instead.

func (*APITrafficTopItem) GetBan

func (x *APITrafficTopItem) GetBan() *APIBanItem

func (*APITrafficTopItem) GetCount

func (x *APITrafficTopItem) GetCount() int32

func (*APITrafficTopItem) GetInWhitelist

func (x *APITrafficTopItem) GetInWhitelist() bool

func (*APITrafficTopItem) GetIp

func (x *APITrafficTopItem) GetIp() string

func (*APITrafficTopItem) GetWhoisUrl

func (x *APITrafficTopItem) GetWhoisUrl() string

func (*APITrafficTopItem) ProtoMessage

func (*APITrafficTopItem) ProtoMessage()

func (*APITrafficTopItem) ProtoReflect

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

func (*APITrafficTopItem) Reset

func (x *APITrafficTopItem) Reset()

func (*APITrafficTopItem) String

func (x *APITrafficTopItem) String() string

type APITrafficTopResponse

type APITrafficTopResponse struct {
	Items []*APITrafficTopItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*APITrafficTopResponse) Descriptor deprecated

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

Deprecated: Use APITrafficTopResponse.ProtoReflect.Descriptor instead.

func (*APITrafficTopResponse) GetItems

func (x *APITrafficTopResponse) GetItems() []*APITrafficTopItem

func (*APITrafficTopResponse) ProtoMessage

func (*APITrafficTopResponse) ProtoMessage()

func (*APITrafficTopResponse) ProtoReflect

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

func (*APITrafficTopResponse) Reset

func (x *APITrafficTopResponse) Reset()

func (*APITrafficTopResponse) String

func (x *APITrafficTopResponse) String() string

type APITrafficWhitelistItem

type APITrafficWhitelistItem struct {
	Ip          string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*APITrafficWhitelistItem) Descriptor deprecated

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

Deprecated: Use APITrafficWhitelistItem.ProtoReflect.Descriptor instead.

func (*APITrafficWhitelistItem) GetDescription

func (x *APITrafficWhitelistItem) GetDescription() string

func (*APITrafficWhitelistItem) GetIp

func (x *APITrafficWhitelistItem) GetIp() string

func (*APITrafficWhitelistItem) ProtoMessage

func (*APITrafficWhitelistItem) ProtoMessage()

func (*APITrafficWhitelistItem) ProtoReflect

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

func (*APITrafficWhitelistItem) Reset

func (x *APITrafficWhitelistItem) Reset()

func (*APITrafficWhitelistItem) String

func (x *APITrafficWhitelistItem) String() string

type APITrafficWhitelistItems

type APITrafficWhitelistItems struct {
	Items []*APITrafficWhitelistItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*APITrafficWhitelistItems) Descriptor deprecated

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

Deprecated: Use APITrafficWhitelistItems.ProtoReflect.Descriptor instead.

func (*APITrafficWhitelistItems) GetItems

func (*APITrafficWhitelistItems) ProtoMessage

func (*APITrafficWhitelistItems) ProtoMessage()

func (*APITrafficWhitelistItems) ProtoReflect

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

func (*APITrafficWhitelistItems) Reset

func (x *APITrafficWhitelistItems) Reset()

func (*APITrafficWhitelistItems) String

func (x *APITrafficWhitelistItems) String() string

type APITreeItem

type APITreeItem struct {
	Id     string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Childs []*APITreeItem `protobuf:"bytes,3,rep,name=childs,proto3" json:"childs,omitempty"`
	Type   int32          `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*APITreeItem) Descriptor deprecated

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

Deprecated: Use APITreeItem.ProtoReflect.Descriptor instead.

func (*APITreeItem) GetChilds

func (x *APITreeItem) GetChilds() []*APITreeItem

func (*APITreeItem) GetId

func (x *APITreeItem) GetId() string

func (*APITreeItem) GetName

func (x *APITreeItem) GetName() string

func (*APITreeItem) GetType

func (x *APITreeItem) GetType() int32

func (*APITreeItem) ProtoMessage

func (*APITreeItem) ProtoMessage()

func (*APITreeItem) ProtoReflect

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

func (*APITreeItem) Reset

func (x *APITreeItem) Reset()

func (*APITreeItem) String

func (x *APITreeItem) String() string

type APIUser

type APIUser struct {
	Id          int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Deleted     bool                 `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"`
	LongAway    bool                 `protobuf:"varint,4,opt,name=long_away,json=longAway,proto3" json:"long_away,omitempty"`
	Green       bool                 `protobuf:"varint,5,opt,name=green,proto3" json:"green,omitempty"`
	Route       []string             `protobuf:"bytes,6,rep,name=route,proto3" json:"route,omitempty"`
	Identity    string               `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"`
	Avatar      *APIImage            `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gravatar    string               `protobuf:"bytes,9,opt,name=gravatar,proto3" json:"gravatar,omitempty"`
	LastOnline  *timestamp.Timestamp `protobuf:"bytes,10,opt,name=last_online,json=lastOnline,proto3" json:"last_online,omitempty"`
	SpecsWeight float64              `protobuf:"fixed64,11,opt,name=specs_weight,json=specsWeight,proto3" json:"specs_weight,omitempty"`
	// contains filtered or unexported fields
}

func APIUserToGRPC

func APIUserToGRPC(user *users.APIUser) *APIUser

func (*APIUser) Descriptor deprecated

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

Deprecated: Use APIUser.ProtoReflect.Descriptor instead.

func (*APIUser) GetAvatar

func (x *APIUser) GetAvatar() *APIImage

func (*APIUser) GetDeleted

func (x *APIUser) GetDeleted() bool

func (*APIUser) GetGravatar

func (x *APIUser) GetGravatar() string

func (*APIUser) GetGreen

func (x *APIUser) GetGreen() bool

func (*APIUser) GetId

func (x *APIUser) GetId() int64

func (*APIUser) GetIdentity

func (x *APIUser) GetIdentity() string

func (*APIUser) GetLastOnline

func (x *APIUser) GetLastOnline() *timestamp.Timestamp

func (*APIUser) GetLongAway

func (x *APIUser) GetLongAway() bool

func (*APIUser) GetName

func (x *APIUser) GetName() string

func (*APIUser) GetRoute

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

func (*APIUser) GetSpecsWeight

func (x *APIUser) GetSpecsWeight() float64

func (*APIUser) ProtoMessage

func (*APIUser) ProtoMessage()

func (*APIUser) ProtoReflect

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

func (*APIUser) Reset

func (x *APIUser) Reset()

func (*APIUser) String

func (x *APIUser) String() string

type APIUserPreferencesRequest added in v1.1.0

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

func (*APIUserPreferencesRequest) Descriptor deprecated added in v1.1.0

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

Deprecated: Use APIUserPreferencesRequest.ProtoReflect.Descriptor instead.

func (*APIUserPreferencesRequest) GetUserId added in v1.1.0

func (x *APIUserPreferencesRequest) GetUserId() int64

func (*APIUserPreferencesRequest) ProtoMessage added in v1.1.0

func (*APIUserPreferencesRequest) ProtoMessage()

func (*APIUserPreferencesRequest) ProtoReflect added in v1.1.0

func (*APIUserPreferencesRequest) Reset added in v1.1.0

func (x *APIUserPreferencesRequest) Reset()

func (*APIUserPreferencesRequest) String added in v1.1.0

func (x *APIUserPreferencesRequest) String() string

type APIUserPreferencesResponse added in v1.1.0

type APIUserPreferencesResponse struct {
	DisableCommentsNotifications bool `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*APIUserPreferencesResponse) Descriptor deprecated added in v1.1.0

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

Deprecated: Use APIUserPreferencesResponse.ProtoReflect.Descriptor instead.

func (*APIUserPreferencesResponse) GetDisableCommentsNotifications added in v1.1.0

func (x *APIUserPreferencesResponse) GetDisableCommentsNotifications() bool

func (*APIUserPreferencesResponse) ProtoMessage added in v1.1.0

func (*APIUserPreferencesResponse) ProtoMessage()

func (*APIUserPreferencesResponse) ProtoReflect added in v1.1.0

func (*APIUserPreferencesResponse) Reset added in v1.1.0

func (x *APIUserPreferencesResponse) Reset()

func (*APIUserPreferencesResponse) String added in v1.1.0

func (x *APIUserPreferencesResponse) String() string

type AboutDataResponse

type AboutDataResponse struct {
	Developer      string   `protobuf:"bytes,1,opt,name=developer,proto3" json:"developer,omitempty"`
	FrTranslator   string   `protobuf:"bytes,2,opt,name=fr_translator,json=frTranslator,proto3" json:"fr_translator,omitempty"`
	ZhTranslator   string   `protobuf:"bytes,3,opt,name=zh_translator,json=zhTranslator,proto3" json:"zh_translator,omitempty"`
	BeTranslator   string   `protobuf:"bytes,4,opt,name=be_translator,json=beTranslator,proto3" json:"be_translator,omitempty"`
	PtBrTranslator string   `protobuf:"bytes,5,opt,name=pt_br_translator,json=ptBrTranslator,proto3" json:"pt_br_translator,omitempty"`
	Contributors   []string `protobuf:"bytes,6,rep,name=contributors,proto3" json:"contributors,omitempty"`
	TotalPictures  int32    `protobuf:"varint,7,opt,name=total_pictures,json=totalPictures,proto3" json:"total_pictures,omitempty"`
	PicturesSize   int32    `protobuf:"varint,8,opt,name=pictures_size,json=picturesSize,proto3" json:"pictures_size,omitempty"`
	TotalUsers     int32    `protobuf:"varint,9,opt,name=total_users,json=totalUsers,proto3" json:"total_users,omitempty"`
	TotalItems     int32    `protobuf:"varint,10,opt,name=total_items,json=totalItems,proto3" json:"total_items,omitempty"`
	TotalComments  int32    `protobuf:"varint,11,opt,name=total_comments,json=totalComments,proto3" json:"total_comments,omitempty"`
	// contains filtered or unexported fields
}

func (*AboutDataResponse) Descriptor deprecated

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

Deprecated: Use AboutDataResponse.ProtoReflect.Descriptor instead.

func (*AboutDataResponse) GetBeTranslator

func (x *AboutDataResponse) GetBeTranslator() string

func (*AboutDataResponse) GetContributors

func (x *AboutDataResponse) GetContributors() []string

func (*AboutDataResponse) GetDeveloper

func (x *AboutDataResponse) GetDeveloper() string

func (*AboutDataResponse) GetFrTranslator

func (x *AboutDataResponse) GetFrTranslator() string

func (*AboutDataResponse) GetPicturesSize

func (x *AboutDataResponse) GetPicturesSize() int32

func (*AboutDataResponse) GetPtBrTranslator

func (x *AboutDataResponse) GetPtBrTranslator() string

func (*AboutDataResponse) GetTotalComments

func (x *AboutDataResponse) GetTotalComments() int32

func (*AboutDataResponse) GetTotalItems

func (x *AboutDataResponse) GetTotalItems() int32

func (*AboutDataResponse) GetTotalPictures

func (x *AboutDataResponse) GetTotalPictures() int32

func (*AboutDataResponse) GetTotalUsers

func (x *AboutDataResponse) GetTotalUsers() int32

func (*AboutDataResponse) GetZhTranslator

func (x *AboutDataResponse) GetZhTranslator() string

func (*AboutDataResponse) ProtoMessage

func (*AboutDataResponse) ProtoMessage()

func (*AboutDataResponse) ProtoReflect

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

func (*AboutDataResponse) Reset

func (x *AboutDataResponse) Reset()

func (*AboutDataResponse) String

func (x *AboutDataResponse) String() string

type AclEnforceRequest

type AclEnforceRequest struct {
	Resource  string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Privilege string `protobuf:"bytes,2,opt,name=privilege,proto3" json:"privilege,omitempty"`
	// contains filtered or unexported fields
}

func (*AclEnforceRequest) Descriptor deprecated

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

Deprecated: Use AclEnforceRequest.ProtoReflect.Descriptor instead.

func (*AclEnforceRequest) GetPrivilege

func (x *AclEnforceRequest) GetPrivilege() string

func (*AclEnforceRequest) GetResource

func (x *AclEnforceRequest) GetResource() string

func (*AclEnforceRequest) ProtoMessage

func (*AclEnforceRequest) ProtoMessage()

func (*AclEnforceRequest) ProtoReflect

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

func (*AclEnforceRequest) Reset

func (x *AclEnforceRequest) Reset()

func (*AclEnforceRequest) String

func (x *AclEnforceRequest) String() string

type AclEnforceResult

type AclEnforceResult struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*AclEnforceResult) Descriptor deprecated

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

Deprecated: Use AclEnforceResult.ProtoReflect.Descriptor instead.

func (*AclEnforceResult) GetResult

func (x *AclEnforceResult) GetResult() bool

func (*AclEnforceResult) ProtoMessage

func (*AclEnforceResult) ProtoMessage()

func (*AclEnforceResult) ProtoReflect

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

func (*AclEnforceResult) Reset

func (x *AclEnforceResult) Reset()

func (*AclEnforceResult) String

func (x *AclEnforceResult) String() string

type AddToTrafficBlacklistRequest

type AddToTrafficBlacklistRequest struct {
	Ip     string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Period int32  `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*AddToTrafficBlacklistRequest) Descriptor deprecated

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

Deprecated: Use AddToTrafficBlacklistRequest.ProtoReflect.Descriptor instead.

func (*AddToTrafficBlacklistRequest) GetIp

func (*AddToTrafficBlacklistRequest) GetPeriod

func (x *AddToTrafficBlacklistRequest) GetPeriod() int32

func (*AddToTrafficBlacklistRequest) GetReason

func (x *AddToTrafficBlacklistRequest) GetReason() string

func (*AddToTrafficBlacklistRequest) ProtoMessage

func (*AddToTrafficBlacklistRequest) ProtoMessage()

func (*AddToTrafficBlacklistRequest) ProtoReflect

func (*AddToTrafficBlacklistRequest) Reset

func (x *AddToTrafficBlacklistRequest) Reset()

func (*AddToTrafficBlacklistRequest) String

type AddToTrafficWhitelistRequest

type AddToTrafficWhitelistRequest struct {
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*AddToTrafficWhitelistRequest) Descriptor deprecated

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

Deprecated: Use AddToTrafficWhitelistRequest.ProtoReflect.Descriptor instead.

func (*AddToTrafficWhitelistRequest) GetIp

func (*AddToTrafficWhitelistRequest) ProtoMessage

func (*AddToTrafficWhitelistRequest) ProtoMessage()

func (*AddToTrafficWhitelistRequest) ProtoReflect

func (*AddToTrafficWhitelistRequest) Reset

func (x *AddToTrafficWhitelistRequest) Reset()

func (*AddToTrafficWhitelistRequest) String

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application is Service Main Object.

func NewApplication

func NewApplication(cfg config.Config) *Application

NewApplication constructor.

func (*Application) Autoban

func (s *Application) Autoban(quit chan bool) error

func (*Application) Close

func (s *Application) Close() error

Close Destructor.

func (*Application) ExportUsersToKeycloak

func (s *Application) ExportUsersToKeycloak(ctx context.Context) error

func (*Application) ImageStorageGetFormattedImage

func (s *Application) ImageStorageGetFormattedImage(
	ctx context.Context,
	imageID int,
	format string,
) (*APIImage, error)

func (*Application) ImageStorageGetImage

func (s *Application) ImageStorageGetImage(ctx context.Context, imageID int) (*APIImage, error)

func (*Application) ListenDuplicateFinderAMQP

func (s *Application) ListenDuplicateFinderAMQP(quit chan bool) error

func (*Application) ListenMonitoringAMQP

func (s *Application) ListenMonitoringAMQP(quit chan bool) error

func (*Application) MigrateAutowp

func (s *Application) MigrateAutowp() error

func (*Application) MigratePostgres added in v1.1.0

func (s *Application) MigratePostgres() error

func (*Application) SchedulerDaily

func (s *Application) SchedulerDaily() error

func (*Application) SchedulerHourly

func (s *Application) SchedulerHourly(ctx context.Context) error

func (*Application) SchedulerMidnight

func (s *Application) SchedulerMidnight(ctx context.Context) error

func (*Application) ServeGRPC added in v1.4.0

func (s *Application) ServeGRPC(quit chan bool) error

func (*Application) ServePrivate

func (s *Application) ServePrivate(quit chan bool) error

func (*Application) ServePublic

func (s *Application) ServePublic(quit chan bool) error

type Article added in v1.7.0

type Article struct {
	Id          int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	AuthorId    int64                `protobuf:"varint,3,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"`
	Catname     string               `protobuf:"bytes,4,opt,name=catname,proto3" json:"catname,omitempty"`
	Date        *timestamp.Timestamp `protobuf:"bytes,5,opt,name=date,proto3" json:"date,omitempty"`
	Html        string               `protobuf:"bytes,6,opt,name=html,proto3" json:"html,omitempty"`
	PreviewUrl  string               `protobuf:"bytes,7,opt,name=preview_url,json=previewUrl,proto3" json:"preview_url,omitempty"`
	Description string               `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Article) Descriptor deprecated added in v1.7.0

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetAuthorId added in v1.7.0

func (x *Article) GetAuthorId() int64

func (*Article) GetCatname added in v1.7.0

func (x *Article) GetCatname() string

func (*Article) GetDate added in v1.7.0

func (x *Article) GetDate() *timestamp.Timestamp

func (*Article) GetDescription added in v1.7.1

func (x *Article) GetDescription() string

func (*Article) GetHtml added in v1.7.0

func (x *Article) GetHtml() string

func (*Article) GetId added in v1.7.0

func (x *Article) GetId() int64

func (*Article) GetName added in v1.7.0

func (x *Article) GetName() string

func (*Article) GetPreviewUrl added in v1.7.0

func (x *Article) GetPreviewUrl() string

func (*Article) ProtoMessage added in v1.7.0

func (*Article) ProtoMessage()

func (*Article) ProtoReflect added in v1.7.0

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

func (*Article) Reset added in v1.7.0

func (x *Article) Reset()

func (*Article) String added in v1.7.0

func (x *Article) String() string

type ArticleByCatnameRequest added in v1.7.0

type ArticleByCatnameRequest struct {
	Catname string `protobuf:"bytes,1,opt,name=catname,proto3" json:"catname,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticleByCatnameRequest) Descriptor deprecated added in v1.7.0

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

Deprecated: Use ArticleByCatnameRequest.ProtoReflect.Descriptor instead.

func (*ArticleByCatnameRequest) GetCatname added in v1.7.0

func (x *ArticleByCatnameRequest) GetCatname() string

func (*ArticleByCatnameRequest) ProtoMessage added in v1.7.0

func (*ArticleByCatnameRequest) ProtoMessage()

func (*ArticleByCatnameRequest) ProtoReflect added in v1.7.0

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

func (*ArticleByCatnameRequest) Reset added in v1.7.0

func (x *ArticleByCatnameRequest) Reset()

func (*ArticleByCatnameRequest) String added in v1.7.0

func (x *ArticleByCatnameRequest) String() string

type ArticlesClient added in v1.7.0

type ArticlesClient interface {
	GetList(ctx context.Context, in *ArticlesRequest, opts ...grpc.CallOption) (*ArticlesResponse, error)
	GetItemByCatname(ctx context.Context, in *ArticleByCatnameRequest, opts ...grpc.CallOption) (*Article, error)
}

ArticlesClient is the client API for Articles 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 NewArticlesClient added in v1.7.0

func NewArticlesClient(cc grpc.ClientConnInterface) ArticlesClient

type ArticlesGRPCServer added in v1.7.0

type ArticlesGRPCServer struct {
	UnimplementedArticlesServer
	// contains filtered or unexported fields
}

func NewArticlesGRPCServer added in v1.7.0

func NewArticlesGRPCServer(db *goqu.Database) *ArticlesGRPCServer

func (*ArticlesGRPCServer) GetItemByCatname added in v1.7.0

func (s *ArticlesGRPCServer) GetItemByCatname(ctx context.Context, in *ArticleByCatnameRequest) (*Article, error)

func (*ArticlesGRPCServer) GetList added in v1.7.0

type ArticlesRequest added in v1.7.0

type ArticlesRequest struct {
	Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Page  uint64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticlesRequest) Descriptor deprecated added in v1.7.0

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

Deprecated: Use ArticlesRequest.ProtoReflect.Descriptor instead.

func (*ArticlesRequest) GetLimit added in v1.7.0

func (x *ArticlesRequest) GetLimit() uint64

func (*ArticlesRequest) GetPage added in v1.7.0

func (x *ArticlesRequest) GetPage() uint64

func (*ArticlesRequest) ProtoMessage added in v1.7.0

func (*ArticlesRequest) ProtoMessage()

func (*ArticlesRequest) ProtoReflect added in v1.7.0

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

func (*ArticlesRequest) Reset added in v1.7.0

func (x *ArticlesRequest) Reset()

func (*ArticlesRequest) String added in v1.7.0

func (x *ArticlesRequest) String() string

type ArticlesResponse added in v1.7.0

type ArticlesResponse struct {
	Items     []*Article `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 (*ArticlesResponse) Descriptor deprecated added in v1.7.0

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

Deprecated: Use ArticlesResponse.ProtoReflect.Descriptor instead.

func (*ArticlesResponse) GetItems added in v1.7.0

func (x *ArticlesResponse) GetItems() []*Article

func (*ArticlesResponse) GetPaginator added in v1.7.0

func (x *ArticlesResponse) GetPaginator() *Pages

func (*ArticlesResponse) ProtoMessage added in v1.7.0

func (*ArticlesResponse) ProtoMessage()

func (*ArticlesResponse) ProtoReflect added in v1.7.0

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

func (*ArticlesResponse) Reset added in v1.7.0

func (x *ArticlesResponse) Reset()

func (*ArticlesResponse) String added in v1.7.0

func (x *ArticlesResponse) String() string

type ArticlesServer added in v1.7.0

type ArticlesServer interface {
	GetList(context.Context, *ArticlesRequest) (*ArticlesResponse, error)
	GetItemByCatname(context.Context, *ArticleByCatnameRequest) (*Article, error)
	// contains filtered or unexported methods
}

ArticlesServer is the server API for Articles service. All implementations must embed UnimplementedArticlesServer for forward compatibility

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth(
	db *goqu.Database,
	keycloak gocloak.GoCloak,
	keycloakCfg config.KeycloakConfig,
	repository *users.Repository,
) *Auth

func (*Auth) ValidateGRPC

func (s *Auth) ValidateGRPC(ctx context.Context) (int64, string, error)

func (*Auth) ValidateToken

func (s *Auth) ValidateToken(ctx context.Context, tokenString string) (int64, string, error)

type AutowpClient

type AutowpClient interface {
	AclEnforce(ctx context.Context, in *AclEnforceRequest, opts ...grpc.CallOption) (*AclEnforceResult, error)
	CreateFeedback(ctx context.Context, in *APICreateFeedbackRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetBrandIcons(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BrandIcons, error)
	GetBrandVehicleTypes(ctx context.Context, in *GetBrandVehicleTypesRequest, opts ...grpc.CallOption) (*BrandVehicleTypeItems, error)
	GetForumsUserSummary(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APIForumsUserSummary, error)
	GetIP(ctx context.Context, in *APIGetIPRequest, opts ...grpc.CallOption) (*APIIP, error)
	GetPerspectives(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PerspectivesItems, error)
	GetPerspectivePages(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PerspectivePagesItems, error)
	GetReCaptchaConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReCaptchaConfig, error)
	GetSpecs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SpecsItems, error)
	GetVehicleTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VehicleTypeItems, error)
}

AutowpClient is the client API for Autowp 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 NewAutowpClient

func NewAutowpClient(cc grpc.ClientConnInterface) AutowpClient

type AutowpServer

type AutowpServer interface {
	AclEnforce(context.Context, *AclEnforceRequest) (*AclEnforceResult, error)
	CreateFeedback(context.Context, *APICreateFeedbackRequest) (*empty.Empty, error)
	GetBrandIcons(context.Context, *empty.Empty) (*BrandIcons, error)
	GetBrandVehicleTypes(context.Context, *GetBrandVehicleTypesRequest) (*BrandVehicleTypeItems, error)
	GetForumsUserSummary(context.Context, *empty.Empty) (*APIForumsUserSummary, error)
	GetIP(context.Context, *APIGetIPRequest) (*APIIP, error)
	GetPerspectives(context.Context, *empty.Empty) (*PerspectivesItems, error)
	GetPerspectivePages(context.Context, *empty.Empty) (*PerspectivePagesItems, error)
	GetReCaptchaConfig(context.Context, *empty.Empty) (*ReCaptchaConfig, error)
	GetSpecs(context.Context, *empty.Empty) (*SpecsItems, error)
	GetVehicleTypes(context.Context, *empty.Empty) (*VehicleTypeItems, error)
	// contains filtered or unexported methods
}

AutowpServer is the server API for Autowp service. All implementations must embed UnimplementedAutowpServer for forward compatibility

type BrandIcons

type BrandIcons struct {
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	Css   string `protobuf:"bytes,2,opt,name=css,proto3" json:"css,omitempty"`
	// contains filtered or unexported fields
}

func (*BrandIcons) Descriptor deprecated

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

Deprecated: Use BrandIcons.ProtoReflect.Descriptor instead.

func (*BrandIcons) GetCss

func (x *BrandIcons) GetCss() string

func (*BrandIcons) GetImage

func (x *BrandIcons) GetImage() string

func (*BrandIcons) ProtoMessage

func (*BrandIcons) ProtoMessage()

func (*BrandIcons) ProtoReflect

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

func (*BrandIcons) Reset

func (x *BrandIcons) Reset()

func (*BrandIcons) String

func (x *BrandIcons) String() string

type BrandVehicleType

type BrandVehicleType struct {
	Id         int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Catname    string `protobuf:"bytes,3,opt,name=catname,proto3" json:"catname,omitempty"`
	ItemsCount string `protobuf:"bytes,4,opt,name=items_count,json=itemsCount,proto3" json:"items_count,omitempty"`
	// contains filtered or unexported fields
}

func (*BrandVehicleType) Descriptor deprecated

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

Deprecated: Use BrandVehicleType.ProtoReflect.Descriptor instead.

func (*BrandVehicleType) GetCatname

func (x *BrandVehicleType) GetCatname() string

func (*BrandVehicleType) GetId

func (x *BrandVehicleType) GetId() int32

func (*BrandVehicleType) GetItemsCount

func (x *BrandVehicleType) GetItemsCount() string

func (*BrandVehicleType) GetName

func (x *BrandVehicleType) GetName() string

func (*BrandVehicleType) ProtoMessage

func (*BrandVehicleType) ProtoMessage()

func (*BrandVehicleType) ProtoReflect

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

func (*BrandVehicleType) Reset

func (x *BrandVehicleType) Reset()

func (*BrandVehicleType) String

func (x *BrandVehicleType) String() string

type BrandVehicleTypeItems

type BrandVehicleTypeItems struct {
	Items []*BrandVehicleType `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*BrandVehicleTypeItems) Descriptor deprecated

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

Deprecated: Use BrandVehicleTypeItems.ProtoReflect.Descriptor instead.

func (*BrandVehicleTypeItems) GetItems

func (x *BrandVehicleTypeItems) GetItems() []*BrandVehicleType

func (*BrandVehicleTypeItems) ProtoMessage

func (*BrandVehicleTypeItems) ProtoMessage()

func (*BrandVehicleTypeItems) ProtoReflect

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

func (*BrandVehicleTypeItems) Reset

func (x *BrandVehicleTypeItems) Reset()

func (*BrandVehicleTypeItems) String

func (x *BrandVehicleTypeItems) String() string

type BrandsCache

type BrandsCache struct {
	Items []items.Item
	Total int
}

type Catalogue

type Catalogue struct {
	// contains filtered or unexported fields
}

Catalogue service.

func NewCatalogue

func NewCatalogue(db *goqu.Database) (*Catalogue, error)

NewCatalogue constructor.

type CommentVote

type CommentVote struct {
	Value CommentVote_VoteValue `protobuf:"varint,1,opt,name=value,proto3,enum=goautowp.CommentVote_VoteValue" json:"value,omitempty"`
	User  *APIUser              `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentVote) Descriptor deprecated

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

Deprecated: Use CommentVote.ProtoReflect.Descriptor instead.

func (*CommentVote) GetUser

func (x *CommentVote) GetUser() *APIUser

func (*CommentVote) GetValue

func (x *CommentVote) GetValue() CommentVote_VoteValue

func (*CommentVote) ProtoMessage

func (*CommentVote) ProtoMessage()

func (*CommentVote) ProtoReflect

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

func (*CommentVote) Reset

func (x *CommentVote) Reset()

func (*CommentVote) String

func (x *CommentVote) String() string

type CommentVoteItems

type CommentVoteItems struct {
	Items []*CommentVote `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentVoteItems) Descriptor deprecated

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

Deprecated: Use CommentVoteItems.ProtoReflect.Descriptor instead.

func (*CommentVoteItems) GetItems

func (x *CommentVoteItems) GetItems() []*CommentVote

func (*CommentVoteItems) ProtoMessage

func (*CommentVoteItems) ProtoMessage()

func (*CommentVoteItems) ProtoReflect

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

func (*CommentVoteItems) Reset

func (x *CommentVoteItems) Reset()

func (*CommentVoteItems) String

func (x *CommentVoteItems) String() string

type CommentVote_VoteValue

type CommentVote_VoteValue int32
const (
	CommentVote_UNKNOWN  CommentVote_VoteValue = 0
	CommentVote_POSITIVE CommentVote_VoteValue = -1
	CommentVote_NEGATIVE CommentVote_VoteValue = 1
)

func (CommentVote_VoteValue) Descriptor

func (CommentVote_VoteValue) Enum

func (CommentVote_VoteValue) EnumDescriptor deprecated

func (CommentVote_VoteValue) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommentVote_VoteValue.Descriptor instead.

func (CommentVote_VoteValue) Number

func (CommentVote_VoteValue) String

func (x CommentVote_VoteValue) String() string

func (CommentVote_VoteValue) Type

type CommentsClient

type CommentsClient interface {
	GetCommentVotes(ctx context.Context, in *GetCommentVotesRequest, opts ...grpc.CallOption) (*CommentVoteItems, error)
	Subscribe(ctx context.Context, in *CommentsSubscribeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	UnSubscribe(ctx context.Context, in *CommentsUnSubscribeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	View(ctx context.Context, in *CommentsViewRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	SetDeleted(ctx context.Context, in *CommentsSetDeletedRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	MoveComment(ctx context.Context, in *CommentsMoveCommentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	VoteComment(ctx context.Context, in *CommentsVoteCommentRequest, opts ...grpc.CallOption) (*CommentsVoteCommentResponse, error)
}

CommentsClient is the client API for Comments 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 NewCommentsClient

func NewCommentsClient(cc grpc.ClientConnInterface) CommentsClient

type CommentsGRPCServer

type CommentsGRPCServer struct {
	UnimplementedCommentsServer
	// contains filtered or unexported fields
}

func NewCommentsGRPCServer

func NewCommentsGRPCServer(
	auth *Auth,
	commentsRepository *comments.Repository,
	usersRepository *users.Repository,
	userExtractor *users.UserExtractor,
	enforcer *casbin.Enforcer,
) *CommentsGRPCServer

func (*CommentsGRPCServer) GetCommentVotes

func (s *CommentsGRPCServer) GetCommentVotes(
	ctx context.Context,
	in *GetCommentVotesRequest,
) (*CommentVoteItems, error)

func (*CommentsGRPCServer) MoveComment

func (*CommentsGRPCServer) SetDeleted

func (*CommentsGRPCServer) Subscribe

func (*CommentsGRPCServer) UnSubscribe

func (*CommentsGRPCServer) View

func (*CommentsGRPCServer) VoteComment

type CommentsMoveCommentRequest

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

func (*CommentsMoveCommentRequest) Descriptor deprecated

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

Deprecated: Use CommentsMoveCommentRequest.ProtoReflect.Descriptor instead.

func (*CommentsMoveCommentRequest) GetCommentId

func (x *CommentsMoveCommentRequest) GetCommentId() int64

func (*CommentsMoveCommentRequest) GetItemId

func (x *CommentsMoveCommentRequest) GetItemId() int64

func (*CommentsMoveCommentRequest) GetTypeId

func (*CommentsMoveCommentRequest) ProtoMessage

func (*CommentsMoveCommentRequest) ProtoMessage()

func (*CommentsMoveCommentRequest) ProtoReflect

func (*CommentsMoveCommentRequest) Reset

func (x *CommentsMoveCommentRequest) Reset()

func (*CommentsMoveCommentRequest) String

func (x *CommentsMoveCommentRequest) String() string

type CommentsServer

CommentsServer is the server API for Comments service. All implementations must embed UnimplementedCommentsServer for forward compatibility

type CommentsSetDeletedRequest

type CommentsSetDeletedRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	Deleted   bool  `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentsSetDeletedRequest) Descriptor deprecated

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

Deprecated: Use CommentsSetDeletedRequest.ProtoReflect.Descriptor instead.

func (*CommentsSetDeletedRequest) GetCommentId

func (x *CommentsSetDeletedRequest) GetCommentId() int64

func (*CommentsSetDeletedRequest) GetDeleted

func (x *CommentsSetDeletedRequest) GetDeleted() bool

func (*CommentsSetDeletedRequest) ProtoMessage

func (*CommentsSetDeletedRequest) ProtoMessage()

func (*CommentsSetDeletedRequest) ProtoReflect

func (*CommentsSetDeletedRequest) Reset

func (x *CommentsSetDeletedRequest) Reset()

func (*CommentsSetDeletedRequest) String

func (x *CommentsSetDeletedRequest) String() string

type CommentsSubscribeRequest

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

func (*CommentsSubscribeRequest) Descriptor deprecated

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

Deprecated: Use CommentsSubscribeRequest.ProtoReflect.Descriptor instead.

func (*CommentsSubscribeRequest) GetItemId

func (x *CommentsSubscribeRequest) GetItemId() int64

func (*CommentsSubscribeRequest) GetTypeId

func (x *CommentsSubscribeRequest) GetTypeId() CommentsType

func (*CommentsSubscribeRequest) ProtoMessage

func (*CommentsSubscribeRequest) ProtoMessage()

func (*CommentsSubscribeRequest) ProtoReflect

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

func (*CommentsSubscribeRequest) Reset

func (x *CommentsSubscribeRequest) Reset()

func (*CommentsSubscribeRequest) String

func (x *CommentsSubscribeRequest) String() string

type CommentsType

type CommentsType int32
const (
	CommentsType_UNKNOWN          CommentsType = 0
	CommentsType_PICTURES_TYPE_ID CommentsType = 1
	CommentsType_ITEM_TYPE_ID     CommentsType = 2
	CommentsType_VOTINGS_TYPE_ID  CommentsType = 3
	CommentsType_ARTICLES_TYPE_ID CommentsType = 4
	CommentsType_FORUMS_TYPE_ID   CommentsType = 5
)

func (CommentsType) Descriptor

func (CommentsType) Enum

func (x CommentsType) Enum() *CommentsType

func (CommentsType) EnumDescriptor deprecated

func (CommentsType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommentsType.Descriptor instead.

func (CommentsType) Number

func (CommentsType) String

func (x CommentsType) String() string

func (CommentsType) Type

type CommentsUnSubscribeRequest

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

func (*CommentsUnSubscribeRequest) Descriptor deprecated

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

Deprecated: Use CommentsUnSubscribeRequest.ProtoReflect.Descriptor instead.

func (*CommentsUnSubscribeRequest) GetItemId

func (x *CommentsUnSubscribeRequest) GetItemId() int64

func (*CommentsUnSubscribeRequest) GetTypeId

func (*CommentsUnSubscribeRequest) ProtoMessage

func (*CommentsUnSubscribeRequest) ProtoMessage()

func (*CommentsUnSubscribeRequest) ProtoReflect

func (*CommentsUnSubscribeRequest) Reset

func (x *CommentsUnSubscribeRequest) Reset()

func (*CommentsUnSubscribeRequest) String

func (x *CommentsUnSubscribeRequest) String() string

type CommentsViewRequest

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

func (*CommentsViewRequest) Descriptor deprecated

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

Deprecated: Use CommentsViewRequest.ProtoReflect.Descriptor instead.

func (*CommentsViewRequest) GetItemId

func (x *CommentsViewRequest) GetItemId() int64

func (*CommentsViewRequest) GetTypeId

func (x *CommentsViewRequest) GetTypeId() CommentsType

func (*CommentsViewRequest) ProtoMessage

func (*CommentsViewRequest) ProtoMessage()

func (*CommentsViewRequest) ProtoReflect

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

func (*CommentsViewRequest) Reset

func (x *CommentsViewRequest) Reset()

func (*CommentsViewRequest) String

func (x *CommentsViewRequest) String() string

type CommentsVoteCommentRequest

type CommentsVoteCommentRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	Vote      int32 `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentsVoteCommentRequest) Descriptor deprecated

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

Deprecated: Use CommentsVoteCommentRequest.ProtoReflect.Descriptor instead.

func (*CommentsVoteCommentRequest) GetCommentId

func (x *CommentsVoteCommentRequest) GetCommentId() int64

func (*CommentsVoteCommentRequest) GetVote

func (x *CommentsVoteCommentRequest) GetVote() int32

func (*CommentsVoteCommentRequest) ProtoMessage

func (*CommentsVoteCommentRequest) ProtoMessage()

func (*CommentsVoteCommentRequest) ProtoReflect

func (*CommentsVoteCommentRequest) Reset

func (x *CommentsVoteCommentRequest) Reset()

func (*CommentsVoteCommentRequest) String

func (x *CommentsVoteCommentRequest) String() string

type CommentsVoteCommentResponse

type CommentsVoteCommentResponse struct {
	Votes int32 `protobuf:"varint,1,opt,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentsVoteCommentResponse) Descriptor deprecated

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

Deprecated: Use CommentsVoteCommentResponse.ProtoReflect.Descriptor instead.

func (*CommentsVoteCommentResponse) GetVotes

func (x *CommentsVoteCommentResponse) GetVotes() int32

func (*CommentsVoteCommentResponse) ProtoMessage

func (*CommentsVoteCommentResponse) ProtoMessage()

func (*CommentsVoteCommentResponse) ProtoReflect

func (*CommentsVoteCommentResponse) Reset

func (x *CommentsVoteCommentResponse) Reset()

func (*CommentsVoteCommentResponse) String

func (x *CommentsVoteCommentResponse) String() string

type Contact

type Contact struct {
	ContactUserId int64    `protobuf:"varint,1,opt,name=contact_user_id,json=contactUserId,proto3" json:"contact_user_id,omitempty"`
	User          *APIUser `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Contact) Descriptor deprecated

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

Deprecated: Use Contact.ProtoReflect.Descriptor instead.

func (*Contact) GetContactUserId

func (x *Contact) GetContactUserId() int64

func (*Contact) GetUser

func (x *Contact) GetUser() *APIUser

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) ProtoReflect

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

func (*Contact) Reset

func (x *Contact) Reset()

func (*Contact) String

func (x *Contact) String() string

type ContactItems

type ContactItems struct {
	Items []*Contact `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ContactItems) Descriptor deprecated

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

Deprecated: Use ContactItems.ProtoReflect.Descriptor instead.

func (*ContactItems) GetItems

func (x *ContactItems) GetItems() []*Contact

func (*ContactItems) ProtoMessage

func (*ContactItems) ProtoMessage()

func (*ContactItems) ProtoReflect

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

func (*ContactItems) Reset

func (x *ContactItems) Reset()

func (*ContactItems) String

func (x *ContactItems) String() string

type ContactsClient

type ContactsClient interface {
	CreateContact(ctx context.Context, in *CreateContactRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetContact(ctx context.Context, in *GetContactRequest, opts ...grpc.CallOption) (*Contact, error)
	GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*ContactItems, error)
}

ContactsClient is the client API for Contacts 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 NewContactsClient

func NewContactsClient(cc grpc.ClientConnInterface) ContactsClient

type ContactsGRPCServer

type ContactsGRPCServer struct {
	UnimplementedContactsServer
	// contains filtered or unexported fields
}

func NewContactsGRPCServer

func NewContactsGRPCServer(
	auth *Auth,
	contactsRepository *ContactsRepository,
	userRepository *users.Repository,
	userExtractor *users.UserExtractor,
) *ContactsGRPCServer

func (*ContactsGRPCServer) CreateContact

func (s *ContactsGRPCServer) CreateContact(ctx context.Context, in *CreateContactRequest) (*emptypb.Empty, error)

func (*ContactsGRPCServer) DeleteContact

func (s *ContactsGRPCServer) DeleteContact(ctx context.Context, in *DeleteContactRequest) (*emptypb.Empty, error)

func (*ContactsGRPCServer) GetContact

func (s *ContactsGRPCServer) GetContact(ctx context.Context, in *GetContactRequest) (*Contact, error)

func (*ContactsGRPCServer) GetContacts

type ContactsRepository

type ContactsRepository struct {
	// contains filtered or unexported fields
}

ContactsRepository Main Object.

func NewContactsRepository

func NewContactsRepository(db *goqu.Database) *ContactsRepository

NewContactsRepository constructor.

type ContactsServer

type ContactsServer interface {
	CreateContact(context.Context, *CreateContactRequest) (*empty.Empty, error)
	DeleteContact(context.Context, *DeleteContactRequest) (*empty.Empty, error)
	GetContact(context.Context, *GetContactRequest) (*Contact, error)
	GetContacts(context.Context, *GetContactsRequest) (*ContactItems, error)
	// contains filtered or unexported methods
}

ContactsServer is the server API for Contacts service. All implementations must embed UnimplementedContactsServer for forward compatibility

type Container

type Container struct {
	// contains filtered or unexported fields
}

Container Container.

func NewContainer

func NewContainer(cfg config.Config) *Container

NewContainer constructor.

func (*Container) ArticlesGRPCServer added in v1.7.0

func (s *Container) ArticlesGRPCServer() (*ArticlesGRPCServer, error)

func (*Container) Auth

func (s *Container) Auth() (*Auth, error)

func (*Container) AutowpDB

func (s *Container) AutowpDB() (*sql.DB, error)

func (*Container) BanRepository

func (s *Container) BanRepository() (*ban.Repository, error)

func (*Container) Catalogue

func (s *Container) Catalogue() (*Catalogue, error)

func (*Container) Close

func (s *Container) Close() error

func (*Container) CommentsGRPCServer

func (s *Container) CommentsGRPCServer() (*CommentsGRPCServer, error)

func (*Container) CommentsRepository

func (s *Container) CommentsRepository() (*comments.Repository, error)

func (*Container) Config

func (s *Container) Config() config.Config

func (*Container) ContactsGRPCServer

func (s *Container) ContactsGRPCServer() (*ContactsGRPCServer, error)

func (*Container) ContactsRepository

func (s *Container) ContactsRepository() (*ContactsRepository, error)

func (*Container) DonationsGRPCServer

func (s *Container) DonationsGRPCServer() (*DonationsGRPCServer, error)

func (*Container) DuplicateFinder

func (s *Container) DuplicateFinder() (*DuplicateFinder, error)

func (*Container) EmailSender

func (s *Container) EmailSender() email.Sender

func (*Container) Enforcer

func (s *Container) Enforcer() *casbin.Enforcer

func (*Container) Events

func (s *Container) Events() (*Events, error)

func (*Container) Feedback

func (s *Container) Feedback() (*Feedback, error)

func (*Container) Forums

func (s *Container) Forums() (*Forums, error)

func (*Container) GRPCServer

func (s *Container) GRPCServer() (*GRPCServer, error)

func (*Container) GRPCServerWithServices added in v1.4.0

func (s *Container) GRPCServerWithServices() (*grpc.Server, error)

func (*Container) GoquDB

func (s *Container) GoquDB() (*goqu.Database, error)

func (*Container) GoquPostgresDB added in v1.1.0

func (s *Container) GoquPostgresDB() (*goqu.Database, error)

func (*Container) HostsManager

func (s *Container) HostsManager() *hosts.Manager

func (*Container) IPExtractor

func (s *Container) IPExtractor() (*IPExtractor, error)

func (*Container) ImageStorage

func (s *Container) ImageStorage() (*storage.Storage, error)

func (*Container) ItemOfDayRepository

func (s *Container) ItemOfDayRepository() (*itemofday.Repository, error)

func (*Container) ItemsGRPCServer

func (s *Container) ItemsGRPCServer() (*ItemsGRPCServer, error)

func (*Container) ItemsRepository

func (s *Container) ItemsRepository() (*items.Repository, error)

func (*Container) Keycloak

func (s *Container) Keycloak() gocloak.GoCloak

func (*Container) Location

func (s *Container) Location() (*time.Location, error)

Location Location.

func (*Container) MapGRPCServer

func (s *Container) MapGRPCServer() (*MapGRPCServer, error)

func (*Container) Memcached

func (s *Container) Memcached() *memcache.Client

func (*Container) MessagingGRPCServer

func (s *Container) MessagingGRPCServer() (*MessagingGRPCServer, error)

func (*Container) MessagingRepository

func (s *Container) MessagingRepository() (*messaging.Repository, error)

func (*Container) PicturesGRPCServer

func (s *Container) PicturesGRPCServer() (*PicturesGRPCServer, error)

func (*Container) PicturesRepository

func (s *Container) PicturesRepository() (*pictures.Repository, error)

func (*Container) PrivateHTTPServer

func (s *Container) PrivateHTTPServer() (*http.Server, error)

func (*Container) PrivateRouter

func (s *Container) PrivateRouter() (*gin.Engine, error)

func (*Container) PublicHTTPServer

func (s *Container) PublicHTTPServer() (*http.Server, error)

func (*Container) PublicRouter

func (s *Container) PublicRouter() (http.HandlerFunc, error)

func (*Container) SetEmailSender

func (s *Container) SetEmailSender(emailSender email.Sender)

func (*Container) StatisticsGRPCServer

func (s *Container) StatisticsGRPCServer() (*StatisticsGRPCServer, error)

func (*Container) TelegramService

func (s *Container) TelegramService() (*telegram.Service, error)

func (*Container) Traffic

func (s *Container) Traffic() (*traffic.Traffic, error)

func (*Container) TrafficGRPCServer

func (s *Container) TrafficGRPCServer() (*TrafficGRPCServer, error)

func (*Container) UserExtractor

func (s *Container) UserExtractor() (*users.UserExtractor, error)

func (*Container) UsersGRPCServer

func (s *Container) UsersGRPCServer() (*UsersGRPCServer, error)

func (*Container) UsersRepository

func (s *Container) UsersRepository() (*users.Repository, error)

type CreateContactRequest

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

func (*CreateContactRequest) Descriptor deprecated

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

Deprecated: Use CreateContactRequest.ProtoReflect.Descriptor instead.

func (*CreateContactRequest) GetUserId

func (x *CreateContactRequest) GetUserId() int64

func (*CreateContactRequest) ProtoMessage

func (*CreateContactRequest) ProtoMessage()

func (*CreateContactRequest) ProtoReflect

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

func (*CreateContactRequest) Reset

func (x *CreateContactRequest) Reset()

func (*CreateContactRequest) String

func (x *CreateContactRequest) String() string

type CreateFeedbackRequest

type CreateFeedbackRequest struct {
	Name    string `json:"name"`
	Email   string `json:"email"`
	Message string `json:"message"`
	Captcha string `json:"captcha"`
	IP      string
}

CreateFeedbackRequest CreateFeedbackRequest.

func (*CreateFeedbackRequest) Validate

func (s *CreateFeedbackRequest) Validate(
	captchaEnabled bool,
	ip string,
) ([]*errdetails.BadRequest_FieldViolation, error)

type DeleteContactRequest

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

func (*DeleteContactRequest) Descriptor deprecated

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

Deprecated: Use DeleteContactRequest.ProtoReflect.Descriptor instead.

func (*DeleteContactRequest) GetUserId

func (x *DeleteContactRequest) GetUserId() int64

func (*DeleteContactRequest) ProtoMessage

func (*DeleteContactRequest) ProtoMessage()

func (*DeleteContactRequest) ProtoReflect

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

func (*DeleteContactRequest) Reset

func (x *DeleteContactRequest) Reset()

func (*DeleteContactRequest) String

func (x *DeleteContactRequest) String() string

type DeleteFromTrafficBlacklistRequest

type DeleteFromTrafficBlacklistRequest struct {
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFromTrafficBlacklistRequest) Descriptor deprecated

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

Deprecated: Use DeleteFromTrafficBlacklistRequest.ProtoReflect.Descriptor instead.

func (*DeleteFromTrafficBlacklistRequest) GetIp

func (*DeleteFromTrafficBlacklistRequest) ProtoMessage

func (*DeleteFromTrafficBlacklistRequest) ProtoMessage()

func (*DeleteFromTrafficBlacklistRequest) ProtoReflect

func (*DeleteFromTrafficBlacklistRequest) Reset

func (*DeleteFromTrafficBlacklistRequest) String

type DeleteFromTrafficWhitelistRequest

type DeleteFromTrafficWhitelistRequest struct {
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFromTrafficWhitelistRequest) Descriptor deprecated

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

Deprecated: Use DeleteFromTrafficWhitelistRequest.ProtoReflect.Descriptor instead.

func (*DeleteFromTrafficWhitelistRequest) GetIp

func (*DeleteFromTrafficWhitelistRequest) ProtoMessage

func (*DeleteFromTrafficWhitelistRequest) ProtoMessage()

func (*DeleteFromTrafficWhitelistRequest) ProtoReflect

func (*DeleteFromTrafficWhitelistRequest) Reset

func (*DeleteFromTrafficWhitelistRequest) String

type DeleteModerVoteTemplateRequest

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

func (*DeleteModerVoteTemplateRequest) Descriptor deprecated

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

Deprecated: Use DeleteModerVoteTemplateRequest.ProtoReflect.Descriptor instead.

func (*DeleteModerVoteTemplateRequest) GetId

func (*DeleteModerVoteTemplateRequest) ProtoMessage

func (*DeleteModerVoteTemplateRequest) ProtoMessage()

func (*DeleteModerVoteTemplateRequest) ProtoReflect

func (*DeleteModerVoteTemplateRequest) Reset

func (x *DeleteModerVoteTemplateRequest) Reset()

func (*DeleteModerVoteTemplateRequest) String

type DonationsClient

type DonationsClient interface {
	GetVODData(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VODDataResponse, error)
}

DonationsClient is the client API for Donations 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 NewDonationsClient

func NewDonationsClient(cc grpc.ClientConnInterface) DonationsClient

type DonationsGRPCServer

type DonationsGRPCServer struct {
	UnimplementedDonationsServer
	// contains filtered or unexported fields
}

func NewDonationsGRPCServer

func NewDonationsGRPCServer(itemOfDay *itemofday.Repository, donationsVodPrice int32) *DonationsGRPCServer

func (*DonationsGRPCServer) GetVODData

type DonationsServer

type DonationsServer interface {
	GetVODData(context.Context, *empty.Empty) (*VODDataResponse, error)
	// contains filtered or unexported methods
}

DonationsServer is the server API for Donations service. All implementations must embed UnimplementedDonationsServer for forward compatibility

type DuplicateFinder

type DuplicateFinder struct {
	// contains filtered or unexported fields
}

DuplicateFinder Main Object.

func NewDuplicateFinder

func NewDuplicateFinder(db *goqu.Database) (*DuplicateFinder, error)

NewDuplicateFinder constructor.

func (*DuplicateFinder) Index

func (s *DuplicateFinder) Index(id int, url string) error

Index picture image #nosec G107

func (*DuplicateFinder) ListenAMQP

func (s *DuplicateFinder) ListenAMQP(url string, queue string, quitChan chan bool) error

ListenAMQP for incoming messages.

type DuplicateFinderInputMessage

type DuplicateFinderInputMessage struct {
	PictureID int    `json:"picture_id"`
	URL       string `json:"url"`
}

DuplicateFinderInputMessage InputMessage.

type ErrorDetails

type ErrorDetails struct {
	RetryInfo           *errdetails.RetryInfo           `protobuf:"bytes,1,opt,name=retryInfo,proto3" json:"retryInfo,omitempty"`
	DebugInfo           *errdetails.DebugInfo           `protobuf:"bytes,2,opt,name=debugInfo,proto3" json:"debugInfo,omitempty"`
	QuotaFailure        *errdetails.QuotaFailure        `protobuf:"bytes,3,opt,name=quotaFailure,proto3" json:"quotaFailure,omitempty"`
	PreconditionFailure *errdetails.PreconditionFailure `protobuf:"bytes,4,opt,name=preconditionFailure,proto3" json:"preconditionFailure,omitempty"`
	BadRequest          *errdetails.BadRequest          `protobuf:"bytes,5,opt,name=badRequest,proto3" json:"badRequest,omitempty"`
	RequestInfo         *errdetails.RequestInfo         `protobuf:"bytes,6,opt,name=requestInfo,proto3" json:"requestInfo,omitempty"`
	Help                *errdetails.Help                `protobuf:"bytes,7,opt,name=help,proto3" json:"help,omitempty"`
	LocalizedMessage    *errdetails.LocalizedMessage    `protobuf:"bytes,8,opt,name=localizedMessage,proto3" json:"localizedMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorDetails) Descriptor deprecated

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

Deprecated: Use ErrorDetails.ProtoReflect.Descriptor instead.

func (*ErrorDetails) GetBadRequest

func (x *ErrorDetails) GetBadRequest() *errdetails.BadRequest

func (*ErrorDetails) GetDebugInfo

func (x *ErrorDetails) GetDebugInfo() *errdetails.DebugInfo

func (*ErrorDetails) GetHelp

func (x *ErrorDetails) GetHelp() *errdetails.Help

func (*ErrorDetails) GetLocalizedMessage

func (x *ErrorDetails) GetLocalizedMessage() *errdetails.LocalizedMessage

func (*ErrorDetails) GetPreconditionFailure

func (x *ErrorDetails) GetPreconditionFailure() *errdetails.PreconditionFailure

func (*ErrorDetails) GetQuotaFailure

func (x *ErrorDetails) GetQuotaFailure() *errdetails.QuotaFailure

func (*ErrorDetails) GetRequestInfo

func (x *ErrorDetails) GetRequestInfo() *errdetails.RequestInfo

func (*ErrorDetails) GetRetryInfo

func (x *ErrorDetails) GetRetryInfo() *errdetails.RetryInfo

func (*ErrorDetails) ProtoMessage

func (*ErrorDetails) ProtoMessage()

func (*ErrorDetails) ProtoReflect

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

func (*ErrorDetails) Reset

func (x *ErrorDetails) Reset()

func (*ErrorDetails) String

func (x *ErrorDetails) String() string

type Event

type Event struct {
	UserID  int64
	Message string
	Users   []int64
}

type Events

type Events struct {
	// contains filtered or unexported fields
}

func NewEvents

func NewEvents(db *goqu.Database) *Events

func (*Events) Add

func (s *Events) Add(event Event) error

type Feedback

type Feedback struct {
	// contains filtered or unexported fields
}

Feedback Main Object.

func NewFeedback

func NewFeedback(
	config config.FeedbackConfig,
	recaptchaConfig config.RecaptchaConfig,
	captchaEnabled bool,
	emailSender email.Sender,
) (*Feedback, error)

NewFeedback constructor.

func (*Feedback) Create

type Forums

type Forums struct {
	// contains filtered or unexported fields
}

Forums Main Object.

func NewForums

func NewForums(db *goqu.Database) *Forums

func (*Forums) GetUserSummary

func (s *Forums) GetUserSummary(ctx context.Context, userID int64) (int, error)

type GRPCServer

type GRPCServer struct {
	UnimplementedAutowpServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(
	auth *Auth,
	catalogue *Catalogue,
	reCaptchaConfig config.RecaptchaConfig,
	fileStorageConfig config.FileStorageConfig,
	enforcer *casbin.Enforcer,
	comments *comments.Repository,
	ipExtractor *IPExtractor,
	feedback *Feedback,
	forums *Forums,
) *GRPCServer

func (*GRPCServer) AclEnforce

func (s *GRPCServer) AclEnforce(
	ctx context.Context,
	in *AclEnforceRequest,
) (*AclEnforceResult, error)

func (*GRPCServer) CreateFeedback

func (s *GRPCServer) CreateFeedback(ctx context.Context, in *APICreateFeedbackRequest) (*emptypb.Empty, error)

func (*GRPCServer) GetBrandIcons

func (s *GRPCServer) GetBrandIcons(context.Context, *emptypb.Empty) (*BrandIcons, error)

func (*GRPCServer) GetBrandVehicleTypes

func (s *GRPCServer) GetBrandVehicleTypes(
	_ context.Context,
	in *GetBrandVehicleTypesRequest,
) (*BrandVehicleTypeItems, error)

func (*GRPCServer) GetForumsUserSummary

func (s *GRPCServer) GetForumsUserSummary(ctx context.Context, _ *emptypb.Empty) (*APIForumsUserSummary, error)

func (*GRPCServer) GetIP

func (s *GRPCServer) GetIP(ctx context.Context, in *APIGetIPRequest) (*APIIP, error)

func (*GRPCServer) GetPerspectivePages

func (s *GRPCServer) GetPerspectivePages(context.Context, *emptypb.Empty) (*PerspectivePagesItems, error)

func (*GRPCServer) GetPerspectives

func (s *GRPCServer) GetPerspectives(context.Context, *emptypb.Empty) (*PerspectivesItems, error)

func (*GRPCServer) GetReCaptchaConfig

func (s *GRPCServer) GetReCaptchaConfig(context.Context, *emptypb.Empty) (*ReCaptchaConfig, error)

func (*GRPCServer) GetSpecs

func (s *GRPCServer) GetSpecs(context.Context, *emptypb.Empty) (*SpecsItems, error)

func (*GRPCServer) GetVehicleTypes

func (s *GRPCServer) GetVehicleTypes(ctx context.Context, _ *emptypb.Empty) (*VehicleTypeItems, error)

type GetBrandVehicleTypesRequest

type GetBrandVehicleTypesRequest struct {
	BrandId int32 `protobuf:"varint,1,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBrandVehicleTypesRequest) Descriptor deprecated

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

Deprecated: Use GetBrandVehicleTypesRequest.ProtoReflect.Descriptor instead.

func (*GetBrandVehicleTypesRequest) GetBrandId

func (x *GetBrandVehicleTypesRequest) GetBrandId() int32

func (*GetBrandVehicleTypesRequest) ProtoMessage

func (*GetBrandVehicleTypesRequest) ProtoMessage()

func (*GetBrandVehicleTypesRequest) ProtoReflect

func (*GetBrandVehicleTypesRequest) Reset

func (x *GetBrandVehicleTypesRequest) Reset()

func (*GetBrandVehicleTypesRequest) String

func (x *GetBrandVehicleTypesRequest) String() string

type GetCommentVotesRequest

type GetCommentVotesRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommentVotesRequest) Descriptor deprecated

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

Deprecated: Use GetCommentVotesRequest.ProtoReflect.Descriptor instead.

func (*GetCommentVotesRequest) GetCommentId

func (x *GetCommentVotesRequest) GetCommentId() int64

func (*GetCommentVotesRequest) ProtoMessage

func (*GetCommentVotesRequest) ProtoMessage()

func (*GetCommentVotesRequest) ProtoReflect

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

func (*GetCommentVotesRequest) Reset

func (x *GetCommentVotesRequest) Reset()

func (*GetCommentVotesRequest) String

func (x *GetCommentVotesRequest) String() string

type GetContactRequest

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

func (*GetContactRequest) Descriptor deprecated

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

Deprecated: Use GetContactRequest.ProtoReflect.Descriptor instead.

func (*GetContactRequest) GetUserId

func (x *GetContactRequest) GetUserId() int64

func (*GetContactRequest) ProtoMessage

func (*GetContactRequest) ProtoMessage()

func (*GetContactRequest) ProtoReflect

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

func (*GetContactRequest) Reset

func (x *GetContactRequest) Reset()

func (*GetContactRequest) String

func (x *GetContactRequest) String() string

type GetContactsRequest

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

func (*GetContactsRequest) Descriptor deprecated

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

Deprecated: Use GetContactsRequest.ProtoReflect.Descriptor instead.

func (*GetContactsRequest) GetFields

func (x *GetContactsRequest) GetFields() []string

func (*GetContactsRequest) ProtoMessage

func (*GetContactsRequest) ProtoMessage()

func (*GetContactsRequest) ProtoReflect

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

func (*GetContactsRequest) Reset

func (x *GetContactsRequest) Reset()

func (*GetContactsRequest) String

func (x *GetContactsRequest) String() string

type GetTopBrandsListRequest

type GetTopBrandsListRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTopBrandsListRequest) Descriptor deprecated

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

Deprecated: Use GetTopBrandsListRequest.ProtoReflect.Descriptor instead.

func (*GetTopBrandsListRequest) GetLanguage

func (x *GetTopBrandsListRequest) GetLanguage() string

func (*GetTopBrandsListRequest) ProtoMessage

func (*GetTopBrandsListRequest) ProtoMessage()

func (*GetTopBrandsListRequest) ProtoReflect

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

func (*GetTopBrandsListRequest) Reset

func (x *GetTopBrandsListRequest) Reset()

func (*GetTopBrandsListRequest) String

func (x *GetTopBrandsListRequest) String() string

type GetTopCategoriesListRequest

type GetTopCategoriesListRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTopCategoriesListRequest) Descriptor deprecated

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

Deprecated: Use GetTopCategoriesListRequest.ProtoReflect.Descriptor instead.

func (*GetTopCategoriesListRequest) GetLanguage

func (x *GetTopCategoriesListRequest) GetLanguage() string

func (*GetTopCategoriesListRequest) ProtoMessage

func (*GetTopCategoriesListRequest) ProtoMessage()

func (*GetTopCategoriesListRequest) ProtoReflect

func (*GetTopCategoriesListRequest) Reset

func (x *GetTopCategoriesListRequest) Reset()

func (*GetTopCategoriesListRequest) String

func (x *GetTopCategoriesListRequest) String() string

type GetTopFactoriesListRequest

type GetTopFactoriesListRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTopFactoriesListRequest) Descriptor deprecated

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

Deprecated: Use GetTopFactoriesListRequest.ProtoReflect.Descriptor instead.

func (*GetTopFactoriesListRequest) GetLanguage

func (x *GetTopFactoriesListRequest) GetLanguage() string

func (*GetTopFactoriesListRequest) ProtoMessage

func (*GetTopFactoriesListRequest) ProtoMessage()

func (*GetTopFactoriesListRequest) ProtoReflect

func (*GetTopFactoriesListRequest) Reset

func (x *GetTopFactoriesListRequest) Reset()

func (*GetTopFactoriesListRequest) String

func (x *GetTopFactoriesListRequest) String() string

type GetTopPersonsListRequest

type GetTopPersonsListRequest struct {
	Language        string          `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	PictureItemType PictureItemType `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetTopPersonsListRequest) Descriptor deprecated

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

Deprecated: Use GetTopPersonsListRequest.ProtoReflect.Descriptor instead.

func (*GetTopPersonsListRequest) GetLanguage

func (x *GetTopPersonsListRequest) GetLanguage() string

func (*GetTopPersonsListRequest) GetPictureItemType

func (x *GetTopPersonsListRequest) GetPictureItemType() PictureItemType

func (*GetTopPersonsListRequest) ProtoMessage

func (*GetTopPersonsListRequest) ProtoMessage()

func (*GetTopPersonsListRequest) ProtoReflect

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

func (*GetTopPersonsListRequest) Reset

func (x *GetTopPersonsListRequest) Reset()

func (*GetTopPersonsListRequest) String

func (x *GetTopPersonsListRequest) String() string

type GetTopTwinsBrandsListRequest

type GetTopTwinsBrandsListRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTopTwinsBrandsListRequest) Descriptor deprecated

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

Deprecated: Use GetTopTwinsBrandsListRequest.ProtoReflect.Descriptor instead.

func (*GetTopTwinsBrandsListRequest) GetLanguage

func (x *GetTopTwinsBrandsListRequest) GetLanguage() string

func (*GetTopTwinsBrandsListRequest) ProtoMessage

func (*GetTopTwinsBrandsListRequest) ProtoMessage()

func (*GetTopTwinsBrandsListRequest) ProtoReflect

func (*GetTopTwinsBrandsListRequest) Reset

func (x *GetTopTwinsBrandsListRequest) Reset()

func (*GetTopTwinsBrandsListRequest) String

type GetTreeRequest

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

func (*GetTreeRequest) Descriptor deprecated

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

Deprecated: Use GetTreeRequest.ProtoReflect.Descriptor instead.

func (*GetTreeRequest) GetId

func (x *GetTreeRequest) GetId() string

func (*GetTreeRequest) ProtoMessage

func (*GetTreeRequest) ProtoMessage()

func (*GetTreeRequest) ProtoReflect

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

func (*GetTreeRequest) Reset

func (x *GetTreeRequest) Reset()

func (*GetTreeRequest) String

func (x *GetTreeRequest) String() string

type IPExtractor

type IPExtractor struct {
	// contains filtered or unexported fields
}

func NewIPExtractor

func NewIPExtractor(
	enforcer *casbin.Enforcer,
	banRepository *ban.Repository,
	userRepository *users.Repository,
	userExtractor *users.UserExtractor,
) *IPExtractor

func (*IPExtractor) Extract

func (s *IPExtractor) Extract(ctx context.Context, ip net.IP, fields map[string]bool, role string) (*APIIP, error)

type ItemFields

type ItemFields struct {
	NameHtml        bool                   `protobuf:"varint,1,opt,name=name_html,json=nameHtml,proto3" json:"name_html,omitempty"`
	NameDefault     bool                   `protobuf:"varint,2,opt,name=name_default,json=nameDefault,proto3" json:"name_default,omitempty"`
	Description     bool                   `protobuf:"varint,3,opt,name=description,proto3" json:"description,omitempty"`
	HasText         bool                   `protobuf:"varint,4,opt,name=has_text,json=hasText,proto3" json:"has_text,omitempty"`
	PreviewPictures *PreviewPicturesFields `protobuf:"bytes,5,opt,name=preview_pictures,json=previewPictures,proto3" json:"preview_pictures,omitempty"`
	TotalPictures   bool                   `protobuf:"varint,6,opt,name=total_pictures,json=totalPictures,proto3" json:"total_pictures,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemFields) Descriptor deprecated

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

Deprecated: Use ItemFields.ProtoReflect.Descriptor instead.

func (*ItemFields) GetDescription

func (x *ItemFields) GetDescription() bool

func (*ItemFields) GetHasText

func (x *ItemFields) GetHasText() bool

func (*ItemFields) GetNameDefault

func (x *ItemFields) GetNameDefault() bool

func (*ItemFields) GetNameHtml

func (x *ItemFields) GetNameHtml() bool

func (*ItemFields) GetPreviewPictures

func (x *ItemFields) GetPreviewPictures() *PreviewPicturesFields

func (*ItemFields) GetTotalPictures

func (x *ItemFields) GetTotalPictures() bool

func (*ItemFields) ProtoMessage

func (*ItemFields) ProtoMessage()

func (*ItemFields) ProtoReflect

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

func (*ItemFields) Reset

func (x *ItemFields) Reset()

func (*ItemFields) String

func (x *ItemFields) String() string

type ItemPictureType

type ItemPictureType int32
const (
	ItemPictureType_ITEM_PICTURE_UNKNOWN    ItemPictureType = 0
	ItemPictureType_ITEM_PICTURE_CONTENT    ItemPictureType = 1
	ItemPictureType_ITEM_PICTURE_AUTHOR     ItemPictureType = 2
	ItemPictureType_ITEM_PICTURE_COPYRIGHTS ItemPictureType = 3
)

func (ItemPictureType) Descriptor

func (ItemPictureType) Enum

func (x ItemPictureType) Enum() *ItemPictureType

func (ItemPictureType) EnumDescriptor deprecated

func (ItemPictureType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ItemPictureType.Descriptor instead.

func (ItemPictureType) Number

func (ItemPictureType) String

func (x ItemPictureType) String() string

func (ItemPictureType) Type

type ItemPicturesRequest

type ItemPicturesRequest struct {
	TypeId        ItemPictureType  `protobuf:"varint,1,opt,name=type_id,json=typeId,proto3,enum=goautowp.ItemPictureType" json:"type_id,omitempty"`
	Pictures      *PicturesRequest `protobuf:"bytes,2,opt,name=pictures,proto3" json:"pictures,omitempty"`
	PerspectiveId int32            `protobuf:"varint,3,opt,name=perspective_id,json=perspectiveId,proto3" json:"perspective_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemPicturesRequest) Descriptor deprecated

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

Deprecated: Use ItemPicturesRequest.ProtoReflect.Descriptor instead.

func (*ItemPicturesRequest) GetPerspectiveId

func (x *ItemPicturesRequest) GetPerspectiveId() int32

func (*ItemPicturesRequest) GetPictures

func (x *ItemPicturesRequest) GetPictures() *PicturesRequest

func (*ItemPicturesRequest) GetTypeId

func (x *ItemPicturesRequest) GetTypeId() ItemPictureType

func (*ItemPicturesRequest) ProtoMessage

func (*ItemPicturesRequest) ProtoMessage()

func (*ItemPicturesRequest) ProtoReflect

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

func (*ItemPicturesRequest) Reset

func (x *ItemPicturesRequest) Reset()

func (*ItemPicturesRequest) String

func (x *ItemPicturesRequest) String() string

type ItemType

type ItemType int32
const (
	ItemType_ITEM_TYPE_UNKNOWN   ItemType = 0
	ItemType_ITEM_TYPE_VEHICLE   ItemType = 1
	ItemType_ITEM_TYPE_ENGINE    ItemType = 2
	ItemType_ITEM_TYPE_CATEGORY  ItemType = 3
	ItemType_ITEM_TYPE_TWINS     ItemType = 4
	ItemType_ITEM_TYPE_BRAND     ItemType = 5
	ItemType_ITEM_TYPE_FACTORY   ItemType = 6
	ItemType_ITEM_TYPE_MUSEUM    ItemType = 7
	ItemType_ITEM_TYPE_PERSON    ItemType = 8
	ItemType_ITEM_TYPE_COPYRIGHT ItemType = 9
)

func (ItemType) Descriptor

func (ItemType) Descriptor() protoreflect.EnumDescriptor

func (ItemType) Enum

func (x ItemType) Enum() *ItemType

func (ItemType) EnumDescriptor deprecated

func (ItemType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ItemType.Descriptor instead.

func (ItemType) Number

func (x ItemType) Number() protoreflect.EnumNumber

func (ItemType) String

func (x ItemType) String() string

func (ItemType) Type

type ItemsClient

type ItemsClient interface {
	GetTopBrandsList(ctx context.Context, in *GetTopBrandsListRequest, opts ...grpc.CallOption) (*APITopBrandsList, error)
	GetTopPersonsList(ctx context.Context, in *GetTopPersonsListRequest, opts ...grpc.CallOption) (*APITopPersonsList, error)
	GetTopFactoriesList(ctx context.Context, in *GetTopFactoriesListRequest, opts ...grpc.CallOption) (*APITopFactoriesList, error)
	GetTopCategoriesList(ctx context.Context, in *GetTopCategoriesListRequest, opts ...grpc.CallOption) (*APITopCategoriesList, error)
	GetTopTwinsBrandsList(ctx context.Context, in *GetTopTwinsBrandsListRequest, opts ...grpc.CallOption) (*APITopTwinsBrandsList, error)
	List(ctx context.Context, in *ListItemsRequest, opts ...grpc.CallOption) (*APIItemList, error)
	GetTree(ctx context.Context, in *GetTreeRequest, opts ...grpc.CallOption) (*APITreeItem, error)
}

ItemsClient is the client API for Items 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 NewItemsClient

func NewItemsClient(cc grpc.ClientConnInterface) ItemsClient

type ItemsGRPCServer

type ItemsGRPCServer struct {
	UnimplementedItemsServer
	// contains filtered or unexported fields
}

func NewItemsGRPCServer

func NewItemsGRPCServer(
	repository *items.Repository,
	memcached *memcache.Client,
	auth *Auth,
	enforcer *casbin.Enforcer,
) *ItemsGRPCServer

func (*ItemsGRPCServer) GetTopBrandsList

func (*ItemsGRPCServer) GetTopCategoriesList

func (*ItemsGRPCServer) GetTopFactoriesList

func (*ItemsGRPCServer) GetTopPersonsList

func (s *ItemsGRPCServer) GetTopPersonsList(
	_ context.Context,
	in *GetTopPersonsListRequest,
) (*APITopPersonsList, error)

func (*ItemsGRPCServer) GetTopTwinsBrandsList

func (*ItemsGRPCServer) List

type ItemsServer

ItemsServer is the server API for Items service. All implementations must embed UnimplementedItemsServer for forward compatibility

type ListItemsRequest

type ListItemsRequest struct {
	Language           string               `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	Fields             *ItemFields          `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"`
	TypeId             ItemType             `protobuf:"varint,3,opt,name=type_id,json=typeId,proto3,enum=goautowp.ItemType" json:"type_id,omitempty"`
	DescendantPictures *ItemPicturesRequest `protobuf:"bytes,4,opt,name=descendant_pictures,json=descendantPictures,proto3" json:"descendant_pictures,omitempty"`
	PreviewPictures    *ItemPicturesRequest `protobuf:"bytes,5,opt,name=preview_pictures,json=previewPictures,proto3" json:"preview_pictures,omitempty"`
	Limit              uint64               `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListItemsRequest) Descriptor deprecated

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

Deprecated: Use ListItemsRequest.ProtoReflect.Descriptor instead.

func (*ListItemsRequest) GetDescendantPictures

func (x *ListItemsRequest) GetDescendantPictures() *ItemPicturesRequest

func (*ListItemsRequest) GetFields

func (x *ListItemsRequest) GetFields() *ItemFields

func (*ListItemsRequest) GetLanguage

func (x *ListItemsRequest) GetLanguage() string

func (*ListItemsRequest) GetLimit

func (x *ListItemsRequest) GetLimit() uint64

func (*ListItemsRequest) GetPreviewPictures

func (x *ListItemsRequest) GetPreviewPictures() *ItemPicturesRequest

func (*ListItemsRequest) GetTypeId

func (x *ListItemsRequest) GetTypeId() ItemType

func (*ListItemsRequest) ProtoMessage

func (*ListItemsRequest) ProtoMessage()

func (*ListItemsRequest) ProtoReflect

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

func (*ListItemsRequest) Reset

func (x *ListItemsRequest) Reset()

func (*ListItemsRequest) String

func (x *ListItemsRequest) String() string

type MapClient

type MapClient interface {
	GetPoints(ctx context.Context, in *MapGetPointsRequest, opts ...grpc.CallOption) (*MapPoints, error)
}

MapClient is the client API for Map 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 NewMapClient

func NewMapClient(cc grpc.ClientConnInterface) MapClient

type MapGRPCServer

type MapGRPCServer struct {
	UnimplementedMapServer
	// contains filtered or unexported fields
}

func NewMapGRPCServer

func NewMapGRPCServer(db *goqu.Database, imageStorage *storage.Storage) *MapGRPCServer

func (*MapGRPCServer) GetPoints

func (s *MapGRPCServer) GetPoints(ctx context.Context, in *MapGetPointsRequest) (*MapPoints, error)

type MapGetPointsRequest

type MapGetPointsRequest struct {
	PointsOnly bool   `protobuf:"varint,1,opt,name=PointsOnly,proto3" json:"PointsOnly,omitempty"`
	Bounds     string `protobuf:"bytes,2,opt,name=bounds,proto3" json:"bounds,omitempty"`
	Language   string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*MapGetPointsRequest) Descriptor deprecated

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

Deprecated: Use MapGetPointsRequest.ProtoReflect.Descriptor instead.

func (*MapGetPointsRequest) GetBounds

func (x *MapGetPointsRequest) GetBounds() string

func (*MapGetPointsRequest) GetLanguage

func (x *MapGetPointsRequest) GetLanguage() string

func (*MapGetPointsRequest) GetPointsOnly

func (x *MapGetPointsRequest) GetPointsOnly() bool

func (*MapGetPointsRequest) ProtoMessage

func (*MapGetPointsRequest) ProtoMessage()

func (*MapGetPointsRequest) ProtoReflect

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

func (*MapGetPointsRequest) Reset

func (x *MapGetPointsRequest) Reset()

func (*MapGetPointsRequest) String

func (x *MapGetPointsRequest) String() string

type MapPoint

type MapPoint struct {
	Location *Point    `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	Id       string    `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Name     string    `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Url      []string  `protobuf:"bytes,4,rep,name=url,proto3" json:"url,omitempty"`
	Image    *APIImage `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*MapPoint) Descriptor deprecated

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

Deprecated: Use MapPoint.ProtoReflect.Descriptor instead.

func (*MapPoint) GetId

func (x *MapPoint) GetId() string

func (*MapPoint) GetImage

func (x *MapPoint) GetImage() *APIImage

func (*MapPoint) GetLocation

func (x *MapPoint) GetLocation() *Point

func (*MapPoint) GetName

func (x *MapPoint) GetName() string

func (*MapPoint) GetUrl

func (x *MapPoint) GetUrl() []string

func (*MapPoint) ProtoMessage

func (*MapPoint) ProtoMessage()

func (*MapPoint) ProtoReflect

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

func (*MapPoint) Reset

func (x *MapPoint) Reset()

func (*MapPoint) String

func (x *MapPoint) String() string

type MapPoints

type MapPoints struct {
	Points []*MapPoint `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

func (*MapPoints) Descriptor deprecated

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

Deprecated: Use MapPoints.ProtoReflect.Descriptor instead.

func (*MapPoints) GetPoints

func (x *MapPoints) GetPoints() []*MapPoint

func (*MapPoints) ProtoMessage

func (*MapPoints) ProtoMessage()

func (*MapPoints) ProtoReflect

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

func (*MapPoints) Reset

func (x *MapPoints) Reset()

func (*MapPoints) String

func (x *MapPoints) String() string

type MapServer

type MapServer interface {
	GetPoints(context.Context, *MapGetPointsRequest) (*MapPoints, error)
	// contains filtered or unexported methods
}

MapServer is the server API for Map service. All implementations must embed UnimplementedMapServer for forward compatibility

type MessagingClearFolder

type MessagingClearFolder struct {
	Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagingClearFolder) Descriptor deprecated

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

Deprecated: Use MessagingClearFolder.ProtoReflect.Descriptor instead.

func (*MessagingClearFolder) GetFolder

func (x *MessagingClearFolder) GetFolder() string

func (*MessagingClearFolder) ProtoMessage

func (*MessagingClearFolder) ProtoMessage()

func (*MessagingClearFolder) ProtoReflect

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

func (*MessagingClearFolder) Reset

func (x *MessagingClearFolder) Reset()

func (*MessagingClearFolder) String

func (x *MessagingClearFolder) String() string

type MessagingClient

type MessagingClient interface {
	GetMessagesNewCount(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APIMessageNewCount, error)
	GetMessagesSummary(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APIMessageSummary, error)
	DeleteMessage(ctx context.Context, in *MessagingDeleteMessage, opts ...grpc.CallOption) (*empty.Empty, error)
	ClearFolder(ctx context.Context, in *MessagingClearFolder, opts ...grpc.CallOption) (*empty.Empty, error)
	CreateMessage(ctx context.Context, in *MessagingCreateMessage, opts ...grpc.CallOption) (*empty.Empty, error)
	GetMessages(ctx context.Context, in *MessagingGetMessagesRequest, opts ...grpc.CallOption) (*MessagingGetMessagesResponse, error)
}

MessagingClient is the client API for Messaging 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 NewMessagingClient

func NewMessagingClient(cc grpc.ClientConnInterface) MessagingClient

type MessagingCreateMessage

type MessagingCreateMessage struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Text   string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagingCreateMessage) Descriptor deprecated

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

Deprecated: Use MessagingCreateMessage.ProtoReflect.Descriptor instead.

func (*MessagingCreateMessage) GetText

func (x *MessagingCreateMessage) GetText() string

func (*MessagingCreateMessage) GetUserId

func (x *MessagingCreateMessage) GetUserId() int64

func (*MessagingCreateMessage) ProtoMessage

func (*MessagingCreateMessage) ProtoMessage()

func (*MessagingCreateMessage) ProtoReflect

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

func (*MessagingCreateMessage) Reset

func (x *MessagingCreateMessage) Reset()

func (*MessagingCreateMessage) String

func (x *MessagingCreateMessage) String() string

type MessagingDeleteMessage

type MessagingDeleteMessage struct {
	MessageId int64 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagingDeleteMessage) Descriptor deprecated

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

Deprecated: Use MessagingDeleteMessage.ProtoReflect.Descriptor instead.

func (*MessagingDeleteMessage) GetMessageId

func (x *MessagingDeleteMessage) GetMessageId() int64

func (*MessagingDeleteMessage) ProtoMessage

func (*MessagingDeleteMessage) ProtoMessage()

func (*MessagingDeleteMessage) ProtoReflect

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

func (*MessagingDeleteMessage) Reset

func (x *MessagingDeleteMessage) Reset()

func (*MessagingDeleteMessage) String

func (x *MessagingDeleteMessage) String() string

type MessagingGRPCServer

type MessagingGRPCServer struct {
	UnimplementedMessagingServer
	// contains filtered or unexported fields
}

func NewMessagingGRPCServer

func NewMessagingGRPCServer(repository *messaging.Repository, auth *Auth) *MessagingGRPCServer

func (*MessagingGRPCServer) ClearFolder

func (*MessagingGRPCServer) CreateMessage

func (*MessagingGRPCServer) DeleteMessage

func (*MessagingGRPCServer) GetMessages

func (*MessagingGRPCServer) GetMessagesNewCount

func (s *MessagingGRPCServer) GetMessagesNewCount(ctx context.Context, _ *emptypb.Empty) (*APIMessageNewCount, error)

func (*MessagingGRPCServer) GetMessagesSummary

func (s *MessagingGRPCServer) GetMessagesSummary(ctx context.Context, _ *emptypb.Empty) (*APIMessageSummary, error)

type MessagingGetMessagesRequest

type MessagingGetMessagesRequest struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
	Page   int32  `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagingGetMessagesRequest) Descriptor deprecated

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

Deprecated: Use MessagingGetMessagesRequest.ProtoReflect.Descriptor instead.

func (*MessagingGetMessagesRequest) GetFolder

func (x *MessagingGetMessagesRequest) GetFolder() string

func (*MessagingGetMessagesRequest) GetPage

func (x *MessagingGetMessagesRequest) GetPage() int32

func (*MessagingGetMessagesRequest) GetUserId

func (x *MessagingGetMessagesRequest) GetUserId() int64

func (*MessagingGetMessagesRequest) ProtoMessage

func (*MessagingGetMessagesRequest) ProtoMessage()

func (*MessagingGetMessagesRequest) ProtoReflect

func (*MessagingGetMessagesRequest) Reset

func (x *MessagingGetMessagesRequest) Reset()

func (*MessagingGetMessagesRequest) String

func (x *MessagingGetMessagesRequest) String() string

type MessagingGetMessagesResponse

type MessagingGetMessagesResponse struct {
	Items     []*APIMessage `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 (*MessagingGetMessagesResponse) Descriptor deprecated

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

Deprecated: Use MessagingGetMessagesResponse.ProtoReflect.Descriptor instead.

func (*MessagingGetMessagesResponse) GetItems

func (x *MessagingGetMessagesResponse) GetItems() []*APIMessage

func (*MessagingGetMessagesResponse) GetPaginator

func (x *MessagingGetMessagesResponse) GetPaginator() *Pages

func (*MessagingGetMessagesResponse) ProtoMessage

func (*MessagingGetMessagesResponse) ProtoMessage()

func (*MessagingGetMessagesResponse) ProtoReflect

func (*MessagingGetMessagesResponse) Reset

func (x *MessagingGetMessagesResponse) Reset()

func (*MessagingGetMessagesResponse) String

type MessagingServer

type MessagingServer interface {
	GetMessagesNewCount(context.Context, *empty.Empty) (*APIMessageNewCount, error)
	GetMessagesSummary(context.Context, *empty.Empty) (*APIMessageSummary, error)
	DeleteMessage(context.Context, *MessagingDeleteMessage) (*empty.Empty, error)
	ClearFolder(context.Context, *MessagingClearFolder) (*empty.Empty, error)
	CreateMessage(context.Context, *MessagingCreateMessage) (*empty.Empty, error)
	GetMessages(context.Context, *MessagingGetMessagesRequest) (*MessagingGetMessagesResponse, error)
	// contains filtered or unexported methods
}

MessagingServer is the server API for Messaging service. All implementations must embed UnimplementedMessagingServer for forward compatibility

type ModerVoteTemplate

type ModerVoteTemplate struct {
	Id      int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserID  int64  `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Vote    int32  `protobuf:"varint,4,opt,name=vote,proto3" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

func (*ModerVoteTemplate) Descriptor deprecated

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

Deprecated: Use ModerVoteTemplate.ProtoReflect.Descriptor instead.

func (*ModerVoteTemplate) GetId

func (x *ModerVoteTemplate) GetId() int64

func (*ModerVoteTemplate) GetMessage

func (x *ModerVoteTemplate) GetMessage() string

func (*ModerVoteTemplate) GetUserID

func (x *ModerVoteTemplate) GetUserID() int64

func (*ModerVoteTemplate) GetVote

func (x *ModerVoteTemplate) GetVote() int32

func (*ModerVoteTemplate) ProtoMessage

func (*ModerVoteTemplate) ProtoMessage()

func (*ModerVoteTemplate) ProtoReflect

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

func (*ModerVoteTemplate) Reset

func (x *ModerVoteTemplate) Reset()

func (*ModerVoteTemplate) String

func (x *ModerVoteTemplate) String() string

type ModerVoteTemplates

type ModerVoteTemplates struct {
	Items []*ModerVoteTemplate `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ModerVoteTemplates) Descriptor deprecated

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

Deprecated: Use ModerVoteTemplates.ProtoReflect.Descriptor instead.

func (*ModerVoteTemplates) GetItems

func (x *ModerVoteTemplates) GetItems() []*ModerVoteTemplate

func (*ModerVoteTemplates) ProtoMessage

func (*ModerVoteTemplates) ProtoMessage()

func (*ModerVoteTemplates) ProtoReflect

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

func (*ModerVoteTemplates) Reset

func (x *ModerVoteTemplates) Reset()

func (*ModerVoteTemplates) String

func (x *ModerVoteTemplates) String() string

type Pages

type Pages struct {
	PageCount        int32   `protobuf:"varint,1,opt,name=pageCount,proto3" json:"pageCount,omitempty"`
	First            int32   `protobuf:"varint,2,opt,name=first,proto3" json:"first,omitempty"`
	Current          int32   `protobuf:"varint,3,opt,name=current,proto3" json:"current,omitempty"`
	Next             int32   `protobuf:"varint,5,opt,name=next,proto3" json:"next,omitempty"`
	Previous         int32   `protobuf:"varint,6,opt,name=previous,proto3" json:"previous,omitempty"`
	FirstPageInRange int32   `protobuf:"varint,7,opt,name=firstPageInRange,proto3" json:"firstPageInRange,omitempty"`
	LastPageInRange  int32   `protobuf:"varint,8,opt,name=lastPageInRange,proto3" json:"lastPageInRange,omitempty"`
	PagesInRange     []int32 `protobuf:"varint,9,rep,packed,name=pagesInRange,proto3" json:"pagesInRange,omitempty"`
	TotalItemCount   int32   `protobuf:"varint,10,opt,name=totalItemCount,proto3" json:"totalItemCount,omitempty"`
	// contains filtered or unexported fields
}

func (*Pages) Descriptor deprecated

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

Deprecated: Use Pages.ProtoReflect.Descriptor instead.

func (*Pages) GetCurrent

func (x *Pages) GetCurrent() int32

func (*Pages) GetFirst

func (x *Pages) GetFirst() int32

func (*Pages) GetFirstPageInRange

func (x *Pages) GetFirstPageInRange() int32

func (*Pages) GetLastPageInRange

func (x *Pages) GetLastPageInRange() int32

func (*Pages) GetNext

func (x *Pages) GetNext() int32

func (*Pages) GetPageCount

func (x *Pages) GetPageCount() int32

func (*Pages) GetPagesInRange

func (x *Pages) GetPagesInRange() []int32

func (*Pages) GetPrevious

func (x *Pages) GetPrevious() int32

func (*Pages) GetTotalItemCount

func (x *Pages) GetTotalItemCount() int32

func (*Pages) ProtoMessage

func (*Pages) ProtoMessage()

func (*Pages) ProtoReflect

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

func (*Pages) Reset

func (x *Pages) Reset()

func (*Pages) String

func (x *Pages) String() string

type Perspective

type Perspective struct {
	Id   int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Perspective) Descriptor deprecated

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

Deprecated: Use Perspective.ProtoReflect.Descriptor instead.

func (*Perspective) GetId

func (x *Perspective) GetId() int32

func (*Perspective) GetName

func (x *Perspective) GetName() string

func (*Perspective) ProtoMessage

func (*Perspective) ProtoMessage()

func (*Perspective) ProtoReflect

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

func (*Perspective) Reset

func (x *Perspective) Reset()

func (*Perspective) String

func (x *Perspective) String() string

type PerspectiveGroup

type PerspectiveGroup struct {
	Id           int32          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name         string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Perspectives []*Perspective `protobuf:"bytes,3,rep,name=perspectives,proto3" json:"perspectives,omitempty"`
	// contains filtered or unexported fields
}

func (*PerspectiveGroup) Descriptor deprecated

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

Deprecated: Use PerspectiveGroup.ProtoReflect.Descriptor instead.

func (*PerspectiveGroup) GetId

func (x *PerspectiveGroup) GetId() int32

func (*PerspectiveGroup) GetName

func (x *PerspectiveGroup) GetName() string

func (*PerspectiveGroup) GetPerspectives

func (x *PerspectiveGroup) GetPerspectives() []*Perspective

func (*PerspectiveGroup) ProtoMessage

func (*PerspectiveGroup) ProtoMessage()

func (*PerspectiveGroup) ProtoReflect

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

func (*PerspectiveGroup) Reset

func (x *PerspectiveGroup) Reset()

func (*PerspectiveGroup) String

func (x *PerspectiveGroup) String() string

type PerspectivePage

type PerspectivePage struct {
	Id     int32               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string              `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Groups []*PerspectiveGroup `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (*PerspectivePage) Descriptor deprecated

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

Deprecated: Use PerspectivePage.ProtoReflect.Descriptor instead.

func (*PerspectivePage) GetGroups

func (x *PerspectivePage) GetGroups() []*PerspectiveGroup

func (*PerspectivePage) GetId

func (x *PerspectivePage) GetId() int32

func (*PerspectivePage) GetName

func (x *PerspectivePage) GetName() string

func (*PerspectivePage) ProtoMessage

func (*PerspectivePage) ProtoMessage()

func (*PerspectivePage) ProtoReflect

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

func (*PerspectivePage) Reset

func (x *PerspectivePage) Reset()

func (*PerspectivePage) String

func (x *PerspectivePage) String() string

type PerspectivePagesItems

type PerspectivePagesItems struct {
	Items []*PerspectivePage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PerspectivePagesItems) Descriptor deprecated

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

Deprecated: Use PerspectivePagesItems.ProtoReflect.Descriptor instead.

func (*PerspectivePagesItems) GetItems

func (x *PerspectivePagesItems) GetItems() []*PerspectivePage

func (*PerspectivePagesItems) ProtoMessage

func (*PerspectivePagesItems) ProtoMessage()

func (*PerspectivePagesItems) ProtoReflect

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

func (*PerspectivePagesItems) Reset

func (x *PerspectivePagesItems) Reset()

func (*PerspectivePagesItems) String

func (x *PerspectivePagesItems) String() string

type PerspectivesItems

type PerspectivesItems struct {
	Items []*Perspective `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PerspectivesItems) Descriptor deprecated

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

Deprecated: Use PerspectivesItems.ProtoReflect.Descriptor instead.

func (*PerspectivesItems) GetItems

func (x *PerspectivesItems) GetItems() []*Perspective

func (*PerspectivesItems) ProtoMessage

func (*PerspectivesItems) ProtoMessage()

func (*PerspectivesItems) ProtoReflect

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

func (*PerspectivesItems) Reset

func (x *PerspectivesItems) Reset()

func (*PerspectivesItems) String

func (x *PerspectivesItems) String() string

type PictureFields

type PictureFields struct {
	NameText bool `protobuf:"varint,1,opt,name=name_text,json=nameText,proto3" json:"name_text,omitempty"`
	// contains filtered or unexported fields
}

func (*PictureFields) Descriptor deprecated

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

Deprecated: Use PictureFields.ProtoReflect.Descriptor instead.

func (*PictureFields) GetNameText

func (x *PictureFields) GetNameText() bool

func (*PictureFields) ProtoMessage

func (*PictureFields) ProtoMessage()

func (*PictureFields) ProtoReflect

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

func (*PictureFields) Reset

func (x *PictureFields) Reset()

func (*PictureFields) String

func (x *PictureFields) String() string

type PictureItemType

type PictureItemType int32
const (
	PictureItemType_PICTURE_UNKNOWN    PictureItemType = 0
	PictureItemType_PICTURE_CONTENT    PictureItemType = 1
	PictureItemType_PICTURE_AUTHOR     PictureItemType = 2
	PictureItemType_PICTURE_COPYRIGHTS PictureItemType = 3
)

func (PictureItemType) Descriptor

func (PictureItemType) Enum

func (x PictureItemType) Enum() *PictureItemType

func (PictureItemType) EnumDescriptor deprecated

func (PictureItemType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PictureItemType.Descriptor instead.

func (PictureItemType) Number

func (PictureItemType) String

func (x PictureItemType) String() string

func (PictureItemType) Type

type PictureStatus

type PictureStatus int32
const (
	PictureStatus_PICTURE_STATUS_UNKNOWN  PictureStatus = 0
	PictureStatus_PICTURE_STATUS_ACCEPTED PictureStatus = 1
	PictureStatus_PICTURE_STATUS_REMOVING PictureStatus = 2
	PictureStatus_PICTURE_STATUS_REMOVED  PictureStatus = 3
	PictureStatus_PICTURE_STATUS_INBOX    PictureStatus = 4
)

func (PictureStatus) Descriptor

func (PictureStatus) Enum

func (x PictureStatus) Enum() *PictureStatus

func (PictureStatus) EnumDescriptor deprecated

func (PictureStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use PictureStatus.Descriptor instead.

func (PictureStatus) Number

func (PictureStatus) String

func (x PictureStatus) String() string

func (PictureStatus) Type

type PicturesClient

type PicturesClient interface {
	View(ctx context.Context, in *PicturesViewRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	Vote(ctx context.Context, in *PicturesVoteRequest, opts ...grpc.CallOption) (*PicturesVoteSummary, error)
	CreateModerVoteTemplate(ctx context.Context, in *ModerVoteTemplate, opts ...grpc.CallOption) (*ModerVoteTemplate, error)
	DeleteModerVoteTemplate(ctx context.Context, in *DeleteModerVoteTemplateRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetModerVoteTemplates(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ModerVoteTemplates, error)
}

PicturesClient is the client API for Pictures 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 NewPicturesClient

func NewPicturesClient(cc grpc.ClientConnInterface) PicturesClient

type PicturesGRPCServer

type PicturesGRPCServer struct {
	UnimplementedPicturesServer
	// contains filtered or unexported fields
}

func NewPicturesGRPCServer

func NewPicturesGRPCServer(repository *pictures.Repository, auth *Auth, enforcer *casbin.Enforcer) *PicturesGRPCServer

func (*PicturesGRPCServer) CreateModerVoteTemplate

func (s *PicturesGRPCServer) CreateModerVoteTemplate(
	ctx context.Context,
	in *ModerVoteTemplate,
) (*ModerVoteTemplate, error)

func (*PicturesGRPCServer) DeleteModerVoteTemplate

func (s *PicturesGRPCServer) DeleteModerVoteTemplate(
	ctx context.Context,
	in *DeleteModerVoteTemplateRequest,
) (*emptypb.Empty, error)

func (*PicturesGRPCServer) GetModerVoteTemplates

func (s *PicturesGRPCServer) GetModerVoteTemplates(ctx context.Context, _ *emptypb.Empty) (*ModerVoteTemplates, error)

func (*PicturesGRPCServer) View

func (*PicturesGRPCServer) Vote

type PicturesRequest

type PicturesRequest struct {
	Status      PictureStatus        `protobuf:"varint,1,opt,name=status,proto3,enum=goautowp.PictureStatus" json:"status,omitempty"`
	ItemPicture *ItemPicturesRequest `protobuf:"bytes,2,opt,name=item_picture,json=itemPicture,proto3" json:"item_picture,omitempty"`
	// contains filtered or unexported fields
}

func (*PicturesRequest) Descriptor deprecated

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

Deprecated: Use PicturesRequest.ProtoReflect.Descriptor instead.

func (*PicturesRequest) GetItemPicture

func (x *PicturesRequest) GetItemPicture() *ItemPicturesRequest

func (*PicturesRequest) GetStatus

func (x *PicturesRequest) GetStatus() PictureStatus

func (*PicturesRequest) ProtoMessage

func (*PicturesRequest) ProtoMessage()

func (*PicturesRequest) ProtoReflect

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

func (*PicturesRequest) Reset

func (x *PicturesRequest) Reset()

func (*PicturesRequest) String

func (x *PicturesRequest) String() string

type PicturesServer

type PicturesServer interface {
	View(context.Context, *PicturesViewRequest) (*empty.Empty, error)
	Vote(context.Context, *PicturesVoteRequest) (*PicturesVoteSummary, error)
	CreateModerVoteTemplate(context.Context, *ModerVoteTemplate) (*ModerVoteTemplate, error)
	DeleteModerVoteTemplate(context.Context, *DeleteModerVoteTemplateRequest) (*empty.Empty, error)
	GetModerVoteTemplates(context.Context, *empty.Empty) (*ModerVoteTemplates, error)
	// contains filtered or unexported methods
}

PicturesServer is the server API for Pictures service. All implementations must embed UnimplementedPicturesServer for forward compatibility

type PicturesViewRequest

type PicturesViewRequest struct {
	PictureId int64 `protobuf:"varint,1,opt,name=picture_id,json=pictureId,proto3" json:"picture_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PicturesViewRequest) Descriptor deprecated

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

Deprecated: Use PicturesViewRequest.ProtoReflect.Descriptor instead.

func (*PicturesViewRequest) GetPictureId

func (x *PicturesViewRequest) GetPictureId() int64

func (*PicturesViewRequest) ProtoMessage

func (*PicturesViewRequest) ProtoMessage()

func (*PicturesViewRequest) ProtoReflect

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

func (*PicturesViewRequest) Reset

func (x *PicturesViewRequest) Reset()

func (*PicturesViewRequest) String

func (x *PicturesViewRequest) String() string

type PicturesVoteRequest

type PicturesVoteRequest struct {
	PictureId int64 `protobuf:"varint,1,opt,name=picture_id,json=pictureId,proto3" json:"picture_id,omitempty"`
	Value     int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PicturesVoteRequest) Descriptor deprecated

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

Deprecated: Use PicturesVoteRequest.ProtoReflect.Descriptor instead.

func (*PicturesVoteRequest) GetPictureId

func (x *PicturesVoteRequest) GetPictureId() int64

func (*PicturesVoteRequest) GetValue

func (x *PicturesVoteRequest) GetValue() int32

func (*PicturesVoteRequest) ProtoMessage

func (*PicturesVoteRequest) ProtoMessage()

func (*PicturesVoteRequest) ProtoReflect

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

func (*PicturesVoteRequest) Reset

func (x *PicturesVoteRequest) Reset()

func (*PicturesVoteRequest) String

func (x *PicturesVoteRequest) String() string

type PicturesVoteSummary

type PicturesVoteSummary struct {
	Value    int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	Positive int32 `protobuf:"varint,2,opt,name=positive,proto3" json:"positive,omitempty"`
	Negative int32 `protobuf:"varint,3,opt,name=negative,proto3" json:"negative,omitempty"`
	// contains filtered or unexported fields
}

func (*PicturesVoteSummary) Descriptor deprecated

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

Deprecated: Use PicturesVoteSummary.ProtoReflect.Descriptor instead.

func (*PicturesVoteSummary) GetNegative

func (x *PicturesVoteSummary) GetNegative() int32

func (*PicturesVoteSummary) GetPositive

func (x *PicturesVoteSummary) GetPositive() int32

func (*PicturesVoteSummary) GetValue

func (x *PicturesVoteSummary) GetValue() int32

func (*PicturesVoteSummary) ProtoMessage

func (*PicturesVoteSummary) ProtoMessage()

func (*PicturesVoteSummary) ProtoReflect

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

func (*PicturesVoteSummary) Reset

func (x *PicturesVoteSummary) Reset()

func (*PicturesVoteSummary) String

func (x *PicturesVoteSummary) String() string

type Point

type Point struct {
	Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	Lng float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"`
	// contains filtered or unexported fields
}

func (*Point) Descriptor deprecated

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

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetLat

func (x *Point) GetLat() float64

func (*Point) GetLng

func (x *Point) GetLng() float64

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

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

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

type PreviewPicturesFields

type PreviewPicturesFields struct {
	Route   bool           `protobuf:"varint,1,opt,name=route,proto3" json:"route,omitempty"`
	Picture *PictureFields `protobuf:"bytes,2,opt,name=picture,proto3" json:"picture,omitempty"`
	// contains filtered or unexported fields
}

func (*PreviewPicturesFields) Descriptor deprecated

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

Deprecated: Use PreviewPicturesFields.ProtoReflect.Descriptor instead.

func (*PreviewPicturesFields) GetPicture

func (x *PreviewPicturesFields) GetPicture() *PictureFields

func (*PreviewPicturesFields) GetRoute

func (x *PreviewPicturesFields) GetRoute() bool

func (*PreviewPicturesFields) ProtoMessage

func (*PreviewPicturesFields) ProtoMessage()

func (*PreviewPicturesFields) ProtoReflect

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

func (*PreviewPicturesFields) Reset

func (x *PreviewPicturesFields) Reset()

func (*PreviewPicturesFields) String

func (x *PreviewPicturesFields) String() string

type PulseGrid

type PulseGrid struct {
	Line   []float32 `protobuf:"fixed32,1,rep,packed,name=line,proto3" json:"line,omitempty"`
	Color  string    `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"`
	UserId int64     `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PulseGrid) Descriptor deprecated

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

Deprecated: Use PulseGrid.ProtoReflect.Descriptor instead.

func (*PulseGrid) GetColor

func (x *PulseGrid) GetColor() string

func (*PulseGrid) GetLine

func (x *PulseGrid) GetLine() []float32

func (*PulseGrid) GetUserId

func (x *PulseGrid) GetUserId() int64

func (*PulseGrid) ProtoMessage

func (*PulseGrid) ProtoMessage()

func (*PulseGrid) ProtoReflect

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

func (*PulseGrid) Reset

func (x *PulseGrid) Reset()

func (*PulseGrid) String

func (x *PulseGrid) String() string

type PulseLegend

type PulseLegend struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Color  string `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*PulseLegend) Descriptor deprecated

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

Deprecated: Use PulseLegend.ProtoReflect.Descriptor instead.

func (*PulseLegend) GetColor

func (x *PulseLegend) GetColor() string

func (*PulseLegend) GetUserId

func (x *PulseLegend) GetUserId() int64

func (*PulseLegend) ProtoMessage

func (*PulseLegend) ProtoMessage()

func (*PulseLegend) ProtoReflect

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

func (*PulseLegend) Reset

func (x *PulseLegend) Reset()

func (*PulseLegend) String

func (x *PulseLegend) String() string

type PulseRequest

type PulseRequest struct {
	Period PulseRequest_Period `protobuf:"varint,1,opt,name=period,proto3,enum=goautowp.PulseRequest_Period" json:"period,omitempty"`
	// contains filtered or unexported fields
}

func (*PulseRequest) Descriptor deprecated

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

Deprecated: Use PulseRequest.ProtoReflect.Descriptor instead.

func (*PulseRequest) GetPeriod

func (x *PulseRequest) GetPeriod() PulseRequest_Period

func (*PulseRequest) ProtoMessage

func (*PulseRequest) ProtoMessage()

func (*PulseRequest) ProtoReflect

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

func (*PulseRequest) Reset

func (x *PulseRequest) Reset()

func (*PulseRequest) String

func (x *PulseRequest) String() string

type PulseRequest_Period

type PulseRequest_Period int32
const (
	PulseRequest_DEFAULT PulseRequest_Period = 0
	PulseRequest_YEAR    PulseRequest_Period = 1
	PulseRequest_MONTH   PulseRequest_Period = 2
)

func (PulseRequest_Period) Descriptor

func (PulseRequest_Period) Enum

func (PulseRequest_Period) EnumDescriptor deprecated

func (PulseRequest_Period) EnumDescriptor() ([]byte, []int)

Deprecated: Use PulseRequest_Period.Descriptor instead.

func (PulseRequest_Period) Number

func (PulseRequest_Period) String

func (x PulseRequest_Period) String() string

func (PulseRequest_Period) Type

type PulseResponse

type PulseResponse struct {
	Grid   []*PulseGrid   `protobuf:"bytes,1,rep,name=grid,proto3" json:"grid,omitempty"`
	Legend []*PulseLegend `protobuf:"bytes,2,rep,name=legend,proto3" json:"legend,omitempty"`
	Labels []string       `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*PulseResponse) Descriptor deprecated

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

Deprecated: Use PulseResponse.ProtoReflect.Descriptor instead.

func (*PulseResponse) GetGrid

func (x *PulseResponse) GetGrid() []*PulseGrid

func (*PulseResponse) GetLabels

func (x *PulseResponse) GetLabels() []string

func (*PulseResponse) GetLegend

func (x *PulseResponse) GetLegend() []*PulseLegend

func (*PulseResponse) ProtoMessage

func (*PulseResponse) ProtoMessage()

func (*PulseResponse) ProtoReflect

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

func (*PulseResponse) Reset

func (x *PulseResponse) Reset()

func (*PulseResponse) String

func (x *PulseResponse) String() string

type ReCaptchaConfig

type ReCaptchaConfig struct {
	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ReCaptchaConfig) Descriptor deprecated

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

Deprecated: Use ReCaptchaConfig.ProtoReflect.Descriptor instead.

func (*ReCaptchaConfig) GetPublicKey

func (x *ReCaptchaConfig) GetPublicKey() string

func (*ReCaptchaConfig) ProtoMessage

func (*ReCaptchaConfig) ProtoMessage()

func (*ReCaptchaConfig) ProtoReflect

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

func (*ReCaptchaConfig) Reset

func (x *ReCaptchaConfig) Reset()

func (*ReCaptchaConfig) String

func (x *ReCaptchaConfig) String() string

type Spec

type Spec struct {
	Id        int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ShortName string  `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
	Childs    []*Spec `protobuf:"bytes,4,rep,name=childs,proto3" json:"childs,omitempty"`
	// contains filtered or unexported fields
}

func (*Spec) Descriptor deprecated

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

Deprecated: Use Spec.ProtoReflect.Descriptor instead.

func (*Spec) GetChilds

func (x *Spec) GetChilds() []*Spec

func (*Spec) GetId

func (x *Spec) GetId() int32

func (*Spec) GetName

func (x *Spec) GetName() string

func (*Spec) GetShortName

func (x *Spec) GetShortName() string

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) ProtoReflect

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

func (*Spec) Reset

func (x *Spec) Reset()

func (*Spec) String

func (x *Spec) String() string

type SpecsItems

type SpecsItems struct {
	Items []*Spec `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*SpecsItems) Descriptor deprecated

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

Deprecated: Use SpecsItems.ProtoReflect.Descriptor instead.

func (*SpecsItems) GetItems

func (x *SpecsItems) GetItems() []*Spec

func (*SpecsItems) ProtoMessage

func (*SpecsItems) ProtoMessage()

func (*SpecsItems) ProtoReflect

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

func (*SpecsItems) Reset

func (x *SpecsItems) Reset()

func (*SpecsItems) String

func (x *SpecsItems) String() string

type StatisticsClient

type StatisticsClient interface {
	GetPulse(ctx context.Context, in *PulseRequest, opts ...grpc.CallOption) (*PulseResponse, error)
	GetAboutData(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AboutDataResponse, error)
}

StatisticsClient is the client API for Statistics 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 NewStatisticsClient

func NewStatisticsClient(cc grpc.ClientConnInterface) StatisticsClient

type StatisticsGRPCServer

type StatisticsGRPCServer struct {
	UnimplementedStatisticsServer
	// contains filtered or unexported fields
}

func NewStatisticsGRPCServer

func NewStatisticsGRPCServer(
	db *goqu.Database,
	enforcer *casbin.Enforcer,
	aboutConfig config.AboutConfig,
) *StatisticsGRPCServer

func (*StatisticsGRPCServer) GetAboutData

func (*StatisticsGRPCServer) GetPulse

type StatisticsServer

type StatisticsServer interface {
	GetPulse(context.Context, *PulseRequest) (*PulseResponse, error)
	GetAboutData(context.Context, *empty.Empty) (*AboutDataResponse, error)
	// contains filtered or unexported methods
}

StatisticsServer is the server API for Statistics service. All implementations must embed UnimplementedStatisticsServer for forward compatibility

type TokenForm

type TokenForm struct {
	GrantType    string `json:"grant_type"`
	RefreshToken string `json:"refresh_token"`
	Username     string `json:"username"`
	Password     string `json:"password"`
}

type TrafficClient

type TrafficClient interface {
	AddToBlacklist(ctx context.Context, in *AddToTrafficBlacklistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	AddToWhitelist(ctx context.Context, in *AddToTrafficWhitelistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	DeleteFromBlacklist(ctx context.Context, in *DeleteFromTrafficBlacklistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	DeleteFromWhitelist(ctx context.Context, in *DeleteFromTrafficWhitelistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetTop(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APITrafficTopResponse, error)
	GetWhitelist(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APITrafficWhitelistItems, error)
}

TrafficClient is the client API for Traffic 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 NewTrafficClient

func NewTrafficClient(cc grpc.ClientConnInterface) TrafficClient

type TrafficGRPCServer

type TrafficGRPCServer struct {
	UnimplementedTrafficServer
	// contains filtered or unexported fields
}

func NewTrafficGRPCServer

func NewTrafficGRPCServer(
	auth *Auth,
	db *goqu.Database,
	enforcer *casbin.Enforcer,
	userExtractor *users.UserExtractor,
	traffic *traffic.Traffic,
) *TrafficGRPCServer

func (*TrafficGRPCServer) AddToBlacklist added in v1.5.0

func (*TrafficGRPCServer) AddToWhitelist added in v1.5.0

func (*TrafficGRPCServer) DeleteFromBlacklist added in v1.5.0

func (s *TrafficGRPCServer) DeleteFromBlacklist(
	ctx context.Context,
	in *DeleteFromTrafficBlacklistRequest,
) (*emptypb.Empty, error)

func (*TrafficGRPCServer) DeleteFromWhitelist added in v1.5.0

func (s *TrafficGRPCServer) DeleteFromWhitelist(
	ctx context.Context,
	in *DeleteFromTrafficWhitelistRequest,
) (*emptypb.Empty, error)

func (*TrafficGRPCServer) GetTop added in v1.5.0

func (*TrafficGRPCServer) GetTrafficWhitelist

func (s *TrafficGRPCServer) GetTrafficWhitelist(
	ctx context.Context,
	_ *emptypb.Empty,
) (*APITrafficWhitelistItems, error)

type TrafficServer

type TrafficServer interface {
	AddToBlacklist(context.Context, *AddToTrafficBlacklistRequest) (*empty.Empty, error)
	AddToWhitelist(context.Context, *AddToTrafficWhitelistRequest) (*empty.Empty, error)
	DeleteFromBlacklist(context.Context, *DeleteFromTrafficBlacklistRequest) (*empty.Empty, error)
	DeleteFromWhitelist(context.Context, *DeleteFromTrafficWhitelistRequest) (*empty.Empty, error)
	GetTop(context.Context, *empty.Empty) (*APITrafficTopResponse, error)
	GetWhitelist(context.Context, *empty.Empty) (*APITrafficWhitelistItems, error)
	// contains filtered or unexported methods
}

TrafficServer is the server API for Traffic service. All implementations must embed UnimplementedTrafficServer for forward compatibility

type UnimplementedArticlesServer added in v1.7.0

type UnimplementedArticlesServer struct {
}

UnimplementedArticlesServer must be embedded to have forward compatible implementations.

func (UnimplementedArticlesServer) GetItemByCatname added in v1.7.0

func (UnimplementedArticlesServer) GetList added in v1.7.0

type UnimplementedAutowpServer

type UnimplementedAutowpServer struct {
}

UnimplementedAutowpServer must be embedded to have forward compatible implementations.

func (UnimplementedAutowpServer) AclEnforce

func (UnimplementedAutowpServer) CreateFeedback

func (UnimplementedAutowpServer) GetBrandIcons

func (UnimplementedAutowpServer) GetBrandVehicleTypes

func (UnimplementedAutowpServer) GetForumsUserSummary

func (UnimplementedAutowpServer) GetIP

func (UnimplementedAutowpServer) GetPerspectivePages

func (UnimplementedAutowpServer) GetPerspectives

func (UnimplementedAutowpServer) GetReCaptchaConfig

func (UnimplementedAutowpServer) GetSpecs

func (UnimplementedAutowpServer) GetVehicleTypes

type UnimplementedCommentsServer

type UnimplementedCommentsServer struct {
}

UnimplementedCommentsServer must be embedded to have forward compatible implementations.

func (UnimplementedCommentsServer) GetCommentVotes

func (UnimplementedCommentsServer) MoveComment

func (UnimplementedCommentsServer) SetDeleted

func (UnimplementedCommentsServer) Subscribe

func (UnimplementedCommentsServer) UnSubscribe

func (UnimplementedCommentsServer) View

type UnimplementedContactsServer

type UnimplementedContactsServer struct {
}

UnimplementedContactsServer must be embedded to have forward compatible implementations.

func (UnimplementedContactsServer) CreateContact

func (UnimplementedContactsServer) DeleteContact

func (UnimplementedContactsServer) GetContact

func (UnimplementedContactsServer) GetContacts

type UnimplementedDonationsServer

type UnimplementedDonationsServer struct {
}

UnimplementedDonationsServer must be embedded to have forward compatible implementations.

func (UnimplementedDonationsServer) GetVODData

type UnimplementedItemsServer

type UnimplementedItemsServer struct {
}

UnimplementedItemsServer must be embedded to have forward compatible implementations.

func (UnimplementedItemsServer) GetTopBrandsList

func (UnimplementedItemsServer) GetTopCategoriesList

func (UnimplementedItemsServer) GetTopFactoriesList

func (UnimplementedItemsServer) GetTopPersonsList

func (UnimplementedItemsServer) GetTopTwinsBrandsList

func (UnimplementedItemsServer) GetTree

func (UnimplementedItemsServer) List

type UnimplementedMapServer

type UnimplementedMapServer struct {
}

UnimplementedMapServer must be embedded to have forward compatible implementations.

func (UnimplementedMapServer) GetPoints

type UnimplementedMessagingServer

type UnimplementedMessagingServer struct {
}

UnimplementedMessagingServer must be embedded to have forward compatible implementations.

func (UnimplementedMessagingServer) ClearFolder

func (UnimplementedMessagingServer) CreateMessage

func (UnimplementedMessagingServer) DeleteMessage

func (UnimplementedMessagingServer) GetMessagesNewCount

func (UnimplementedMessagingServer) GetMessagesSummary

type UnimplementedPicturesServer

type UnimplementedPicturesServer struct {
}

UnimplementedPicturesServer must be embedded to have forward compatible implementations.

func (UnimplementedPicturesServer) CreateModerVoteTemplate

func (UnimplementedPicturesServer) DeleteModerVoteTemplate

func (UnimplementedPicturesServer) GetModerVoteTemplates

func (UnimplementedPicturesServer) View

func (UnimplementedPicturesServer) Vote

type UnimplementedStatisticsServer

type UnimplementedStatisticsServer struct {
}

UnimplementedStatisticsServer must be embedded to have forward compatible implementations.

func (UnimplementedStatisticsServer) GetAboutData

func (UnimplementedStatisticsServer) GetPulse

type UnimplementedTrafficServer

type UnimplementedTrafficServer struct {
}

UnimplementedTrafficServer must be embedded to have forward compatible implementations.

func (UnimplementedTrafficServer) AddToBlacklist

func (UnimplementedTrafficServer) AddToWhitelist

func (UnimplementedTrafficServer) DeleteFromBlacklist

func (UnimplementedTrafficServer) DeleteFromWhitelist

func (UnimplementedTrafficServer) GetTop

func (UnimplementedTrafficServer) GetWhitelist

type UnimplementedUsersServer

type UnimplementedUsersServer struct {
}

UnimplementedUsersServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersServer) DeleteUser

func (UnimplementedUsersServer) DisableUserCommentsNotifications added in v1.1.0

func (UnimplementedUsersServer) DisableUserCommentsNotifications(context.Context, *APIUserPreferencesRequest) (*empty.Empty, error)

func (UnimplementedUsersServer) EnableUserCommentsNotifications added in v1.1.0

func (UnimplementedUsersServer) EnableUserCommentsNotifications(context.Context, *APIUserPreferencesRequest) (*empty.Empty, error)

func (UnimplementedUsersServer) GetUser

func (UnimplementedUsersServer) GetUserPreferences added in v1.1.0

func (UnimplementedUsersServer) Me

type UnsafeArticlesServer added in v1.7.0

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

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

type UnsafeAutowpServer

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

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

type UnsafeCommentsServer

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

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

type UnsafeContactsServer

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

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

type UnsafeDonationsServer

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

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

type UnsafeItemsServer

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

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

type UnsafeMapServer

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

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

type UnsafeMessagingServer

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

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

type UnsafePicturesServer

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

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

type UnsafeStatisticsServer

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

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

type UnsafeTrafficServer

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

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

type UnsafeUsersServer

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

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

type UsersClient

type UsersClient interface {
	DeleteUser(ctx context.Context, in *APIDeleteUserRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetUser(ctx context.Context, in *APIGetUserRequest, opts ...grpc.CallOption) (*APIUser, error)
	Me(ctx context.Context, in *APIMeRequest, opts ...grpc.CallOption) (*APIUser, error)
	GetUserPreferences(ctx context.Context, in *APIUserPreferencesRequest, opts ...grpc.CallOption) (*APIUserPreferencesResponse, error)
	DisableUserCommentsNotifications(ctx context.Context, in *APIUserPreferencesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	EnableUserCommentsNotifications(ctx context.Context, in *APIUserPreferencesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

UsersClient is the client API for Users 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 NewUsersClient

func NewUsersClient(cc grpc.ClientConnInterface) UsersClient

type UsersGRPCServer

type UsersGRPCServer struct {
	UnimplementedUsersServer
	// contains filtered or unexported fields
}

func NewUsersGRPCServer

func NewUsersGRPCServer(
	auth *Auth,
	enforcer *casbin.Enforcer,
	contactsRepository *ContactsRepository,
	userRepository *users.Repository,
	events *Events,
	languages map[string]config.LanguageConfig,
	captcha bool,
	userExtractor *users.UserExtractor,
) *UsersGRPCServer

func (*UsersGRPCServer) DeleteUser

func (*UsersGRPCServer) DisableUserCommentsNotifications added in v1.1.0

func (s *UsersGRPCServer) DisableUserCommentsNotifications(
	ctx context.Context,
	in *APIUserPreferencesRequest,
) (*emptypb.Empty, error)

func (*UsersGRPCServer) EnableUserCommentsNotifications added in v1.1.0

func (s *UsersGRPCServer) EnableUserCommentsNotifications(
	ctx context.Context,
	in *APIUserPreferencesRequest,
) (*emptypb.Empty, error)

func (*UsersGRPCServer) GetUser

func (s *UsersGRPCServer) GetUser(ctx context.Context, in *APIGetUserRequest) (*APIUser, error)

func (*UsersGRPCServer) GetUserPreferences added in v1.1.0

func (*UsersGRPCServer) Me

type UsersServer

type UsersServer interface {
	DeleteUser(context.Context, *APIDeleteUserRequest) (*empty.Empty, error)
	GetUser(context.Context, *APIGetUserRequest) (*APIUser, error)
	Me(context.Context, *APIMeRequest) (*APIUser, error)
	GetUserPreferences(context.Context, *APIUserPreferencesRequest) (*APIUserPreferencesResponse, error)
	DisableUserCommentsNotifications(context.Context, *APIUserPreferencesRequest) (*empty.Empty, error)
	EnableUserCommentsNotifications(context.Context, *APIUserPreferencesRequest) (*empty.Empty, error)
	// contains filtered or unexported methods
}

UsersServer is the server API for Users service. All implementations must embed UnimplementedUsersServer for forward compatibility

type VODDataDate

type VODDataDate struct {
	Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	Free bool                 `protobuf:"varint,2,opt,name=free,proto3" json:"free,omitempty"`
	// contains filtered or unexported fields
}

func (*VODDataDate) Descriptor deprecated

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

Deprecated: Use VODDataDate.ProtoReflect.Descriptor instead.

func (*VODDataDate) GetDate

func (x *VODDataDate) GetDate() *timestamp.Timestamp

func (*VODDataDate) GetFree

func (x *VODDataDate) GetFree() bool

func (*VODDataDate) ProtoMessage

func (*VODDataDate) ProtoMessage()

func (*VODDataDate) ProtoReflect

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

func (*VODDataDate) Reset

func (x *VODDataDate) Reset()

func (*VODDataDate) String

func (x *VODDataDate) String() string

type VODDataResponse

type VODDataResponse struct {
	Dates []*VODDataDate `protobuf:"bytes,1,rep,name=dates,proto3" json:"dates,omitempty"`
	Sum   int32          `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"`
	// contains filtered or unexported fields
}

func (*VODDataResponse) Descriptor deprecated

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

Deprecated: Use VODDataResponse.ProtoReflect.Descriptor instead.

func (*VODDataResponse) GetDates

func (x *VODDataResponse) GetDates() []*VODDataDate

func (*VODDataResponse) GetSum

func (x *VODDataResponse) GetSum() int32

func (*VODDataResponse) ProtoMessage

func (*VODDataResponse) ProtoMessage()

func (*VODDataResponse) ProtoReflect

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

func (*VODDataResponse) Reset

func (x *VODDataResponse) Reset()

func (*VODDataResponse) String

func (x *VODDataResponse) String() string

type VehicleType

type VehicleType struct {
	Id     int32          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Childs []*VehicleType `protobuf:"bytes,4,rep,name=childs,proto3" json:"childs,omitempty"`
	// contains filtered or unexported fields
}

func (*VehicleType) Descriptor deprecated

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

Deprecated: Use VehicleType.ProtoReflect.Descriptor instead.

func (*VehicleType) GetChilds

func (x *VehicleType) GetChilds() []*VehicleType

func (*VehicleType) GetId

func (x *VehicleType) GetId() int32

func (*VehicleType) GetName

func (x *VehicleType) GetName() string

func (*VehicleType) ProtoMessage

func (*VehicleType) ProtoMessage()

func (*VehicleType) ProtoReflect

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

func (*VehicleType) Reset

func (x *VehicleType) Reset()

func (*VehicleType) String

func (x *VehicleType) String() string

type VehicleTypeItems

type VehicleTypeItems struct {
	Items []*VehicleType `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*VehicleTypeItems) Descriptor deprecated

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

Deprecated: Use VehicleTypeItems.ProtoReflect.Descriptor instead.

func (*VehicleTypeItems) GetItems

func (x *VehicleTypeItems) GetItems() []*VehicleType

func (*VehicleTypeItems) ProtoMessage

func (*VehicleTypeItems) ProtoMessage()

func (*VehicleTypeItems) ProtoReflect

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

func (*VehicleTypeItems) Reset

func (x *VehicleTypeItems) Reset()

func (*VehicleTypeItems) String

func (x *VehicleTypeItems) String() string

Jump to

Keyboard shortcuts

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