Documentation
¶
Index ¶
- Constants
- Variables
- func NewSessionServiceServer(store di.StoreComponent) interface{ ... }
- func NewUserServiceServer(store di.StoreComponent, cfg *config.Config) interface{ ... }
- type AchievementServiceServer
- type ContributionCollectionServiceServer
- type DepartmentServiceServer
- type EmailConfirmationServiceServer
- type EntryServiceServer
- type InvitationServiceServer
- type OAuthServiceServer
- type PasswordResetServiceServer
- type PingServiceServer
- type RoleServiceServer
- type UserBlogServiceServer
Constants ¶
const ( // MaxIconSize represents max of icon size MaxIconSize = 1024 * 1024 // 1MiB // MaxPasswordLength represents max length of password MaxPasswordLength = 72 // MinPasswordLength represents min length of password MinPasswordLength = 6 )
const (
// MaxImageSize represents max of image size
MaxImageSize = 1024 * 1024 * 3
)
Variables ¶
var ( // ErrInvalidPageToken is returned when page token is invalid ErrInvalidPageToken = status.Error(codes.InvalidArgument, "invalid page token") // ErrImageSizeTooLarge will be returned when the image is too large ErrImageSizeTooLarge = status.Error(codes.InvalidArgument, "image must be smaller than 3MiB") )
var ( // ErrFeedURLDetectAutomatically returns when feed url could not be found automatically ErrFeedURLDetectAutomatically = status.Error(codes.InvalidArgument, "feed url could not be found automatically") // ErrInvalidFeedURL returns when feed url is invalid ErrInvalidFeedURL = status.Error(codes.InvalidArgument, "feed url is invalid") )
var ( // ErrPageSizeOutOfRange will be returned when page size is out of range ErrPageSizeOutOfRange = status.Error(codes.OutOfRange, "page size must be 1 <= size <= 100") // ErrIconSizeTooLarge will be returned when icon is too large ErrIconSizeTooLarge = status.Error(codes.InvalidArgument, "image must be smaller than 1MiB") // ErrInvalidImageFormat will be returned when image format is invalid ErrInvalidImageFormat = status.Error(codes.InvalidArgument, "invalid iamge format") // ErrNameAlreadyInUse is returned when name is already in use ErrNameAlreadyInUse = status.Error(codes.AlreadyExists, "name is already in use") // ErrOutOfRangePasswordLength will be returned when password length is out of range ErrOutOfRangePasswordLength = status.Error(codes.InvalidArgument, fmt.Sprintf("length of password must be less than %v and more than %v", MaxPasswordLength+1, MinPasswordLength-1)) )
var ( // ErrEmailAlreadyInUse is returned when email is already in use ErrEmailAlreadyInUse = status.Error(codes.AlreadyExists, "email is already in use") )
var ( // ErrWorkerStopped retuned when the worker has stopped ErrWorkerStopped = status.Error(codes.Internal, "worker has stopped") )
Functions ¶
func NewSessionServiceServer ¶
func NewSessionServiceServer(store di.StoreComponent) interface { api_pb.SessionServiceServer grapiserver.Server }
NewSessionServiceServer creates a new SessionServiceServer instance.
func NewUserServiceServer ¶
func NewUserServiceServer(store di.StoreComponent, cfg *config.Config) interface { api_pb.UserServiceServer grapiserver.Server }
NewUserServiceServer creates a new UserServiceServer instance.
Types ¶
type AchievementServiceServer ¶
type AchievementServiceServer interface { api_pb.AchievementServiceServer grapiserver.Server }
AchievementServiceServer is a composite interface of api_pb.AchievementServiceServer and grapiserver.Server.
func NewAchievementServiceServer ¶
func NewAchievementServiceServer(store di.StoreComponent, cli di.ClientComponent, cfg *config.Config) AchievementServiceServer
NewAchievementServiceServer creates a new AchievementServiceServer instance.
type ContributionCollectionServiceServer ¶
type ContributionCollectionServiceServer interface { api_pb.ContributionCollectionServiceServer grapiserver.Server }
ContributionCollectionServiceServer is a composite interface of api_pb.ContributionCollectionServiceServer and grapiserver.Server.
func NewContributionCollectionServiceServer ¶
func NewContributionCollectionServiceServer(store di.StoreComponent, cfg *config.Config) ContributionCollectionServiceServer
NewContributionCollectionServiceServer creates a new ContributionCollectionServiceServer instance.
type DepartmentServiceServer ¶
type DepartmentServiceServer interface { api_pb.DepartmentServiceServer grapiserver.Server }
DepartmentServiceServer is a composite interface of api_pb.DepartmentServiceServer and grapiserver.Server.
func NewDepartmentServiceServer ¶
func NewDepartmentServiceServer(store di.StoreComponent) DepartmentServiceServer
NewDepartmentServiceServer creates a new DepartmentServiceServer instance.
type EmailConfirmationServiceServer ¶
type EmailConfirmationServiceServer interface { api_pb.EmailConfirmationServiceServer grapiserver.Server }
EmailConfirmationServiceServer is a composite interface of api_pb.EmailConfirmationServiceServer and grapiserver.Server.
func NewEmailConfirmationServiceServer ¶
func NewEmailConfirmationServiceServer(store di.StoreComponent, cli di.ClientComponent, cfg *config.Config) EmailConfirmationServiceServer
NewEmailConfirmationServiceServer creates a new EmailConfirmationServiceServer instance.
type EntryServiceServer ¶
type EntryServiceServer interface { api_pb.EntryServiceServer grapiserver.Server }
EntryServiceServer is a composite interface of api_pb.EntryServiceServer and grapiserver.Server.
func NewEntryServiceServer ¶
func NewEntryServiceServer(store di.StoreComponent, cfg *config.Config) EntryServiceServer
NewEntryServiceServer creates a new EntryServiceServer instance.
type InvitationServiceServer ¶
type InvitationServiceServer interface { api_pb.InvitationServiceServer grapiserver.Server }
InvitationServiceServer is a composite interface of api_pb.InvitationServiceServer and grapiserver.Server.
func NewInvitationServiceServer ¶
func NewInvitationServiceServer(store di.StoreComponent, cli di.ClientComponent) InvitationServiceServer
NewInvitationServiceServer creates a new InvitationServiceServer instance.
type OAuthServiceServer ¶
type OAuthServiceServer interface { api_pb.OAuthServiceServer grapiserver.Server }
OAuthServiceServer is a composite interface of api_pb.OAuthServiceServer and grapiserver.Server.
func NewOAuthServiceServer ¶
func NewOAuthServiceServer(cli di.ClientComponent, store di.StoreComponent) OAuthServiceServer
NewOAuthServiceServer creates a new OAuthServiceServer instance.
type PasswordResetServiceServer ¶
type PasswordResetServiceServer interface { api_pb.PasswordResetServiceServer grapiserver.Server }
PasswordResetServiceServer is a composite interface of api_pb.PasswordResetServiceServer and grapiserver.Server.
func NewPasswordResetServiceServer ¶
func NewPasswordResetServiceServer(store di.StoreComponent, cli di.ClientComponent, cfg *config.Config) PasswordResetServiceServer
NewPasswordResetServiceServer creates a new PasswordResetServiceServer instance.
type PingServiceServer ¶
type PingServiceServer interface { api_pb.PingServiceServer grapiserver.Server }
PingServiceServer is a composite interface of api_pb.PingServiceServer and grapiserver.Server.
func NewPingServiceServer ¶
func NewPingServiceServer(store di.StoreComponent) PingServiceServer
NewPingServiceServer creates a new PingServiceServer instance.
type RoleServiceServer ¶
type RoleServiceServer interface { api_pb.RoleServiceServer grapiserver.Server }
RoleServiceServer is a composite interface of api_pb.RoleServiceServer and grapiserver.Server.
func NewRoleServiceServer ¶
func NewRoleServiceServer(store di.StoreComponent) RoleServiceServer
NewRoleServiceServer creates a new RoleServiceServer instance.
type UserBlogServiceServer ¶
type UserBlogServiceServer interface { api_pb.UserBlogServiceServer grapiserver.Server }
UserBlogServiceServer is a composite interface of api_pb.UserBlogServiceServer and grapiserver.Server.
func NewUserBlogServiceServer ¶
func NewUserBlogServiceServer(store di.StoreComponent) UserBlogServiceServer
NewUserBlogServiceServer creates a new UserBlogServiceServer instance.
Source Files
¶
- achievements_server.go
- achievements_server_register_funcs.go
- admin.go
- contribution_conllections_server.go
- contribution_conllections_server_register_funcs.go
- departments_server.go
- departments_server_register_funcs.go
- email_confirmations_server.go
- email_confirmations_server_register_funcs.go
- entries_server.go
- entries_server_register_funcs.go
- invitations_server.go
- invitations_server_register_funcs.go
- oauth_server.go
- oauth_server_register_funcs.go
- password_resets_server.go
- password_resets_server_register_funcs.go
- ping_server.go
- ping_server_register_funcs.go
- roles_server.go
- roles_server_register_funcs.go
- sessions_server.go
- sessions_server_register_funcs.go
- user_blogs_server.go
- user_blogs_server_register_funcs.go
- users_server.go
- users_server_register_funcs.go