server

package
v0.0.0-...-5346f80 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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
)
View Source
const (
	// MaxImageSize represents max of image size
	MaxImageSize = 1024 * 1024 * 3
)

Variables

View Source
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")
)
View Source
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")
)
View Source
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))
)
View Source
var (
	// ErrEmailAlreadyInUse is returned when email is already in use
	ErrEmailAlreadyInUse = status.Error(codes.AlreadyExists, "email is already in use")
)
View Source
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.

Jump to

Keyboard shortcuts

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