Documentation
¶
Index ¶
- func HandleUsers(users []entity.User, blog_results []model.CustomRawResult, ...) []openapi.Statistic
- func NewAuthenticationAPIService() openapi.AuthenticationAPIServicer
- func NewCommentAPIService() openapi.CommentAPIServicer
- func NewStatisticsAPIService() openapi.StatisticsAPIServicer
- type AuthenticationAPIService
- type CommentAPIService
- type StatisticsAPIService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleUsers ¶
func HandleUsers(users []entity.User, blog_results []model.CustomRawResult, comment_results []model.CustomRawResult) []openapi.Statistic
func NewAuthenticationAPIService ¶
func NewAuthenticationAPIService() openapi.AuthenticationAPIServicer
NewAuthenticationAPIService creates a default api service
func NewCommentAPIService ¶
func NewCommentAPIService() openapi.CommentAPIServicer
NewCommentAPIService creates a default api service
func NewStatisticsAPIService ¶
func NewStatisticsAPIService() openapi.StatisticsAPIServicer
NewStatisticsAPIService creates a default api service
Types ¶
type AuthenticationAPIService ¶
type AuthenticationAPIService struct { }
AuthenticationAPIService is a service that implements the logic for the AuthenticationAPIServicer This service should implement the business logic for every endpoint for the AuthenticationAPI API. Include any external packages or services that will be required by this service.
func (*AuthenticationAPIService) PostLogin ¶
func (s *AuthenticationAPIService) PostLogin(ctx context.Context, loginRequest openapi.LoginRequest) (openapi.ImplResponse, error)
PostLogin - provides JWT token
type CommentAPIService ¶
type CommentAPIService struct { }
CommentAPIService is a service that implements the logic for the CommentAPIServicer This service should implement the business logic for every endpoint for the CommentAPI API. Include any external packages or services that will be required by this service.
func (*CommentAPIService) PostComment ¶
func (s *CommentAPIService) PostComment(ctx context.Context, blogid int32, authorization string, commentRequest openapi.CommentRequest) (openapi.ImplResponse, error)
PostComment - Saves a new Comment
type StatisticsAPIService ¶
type StatisticsAPIService struct { }
StatisticsAPIService is a service that implements the logic for the StatisticsAPIServicer This service should implement the business logic for every endpoint for the StatisticsAPI API. Include any external packages or services that will be required by this service.
func (*StatisticsAPIService) GetStatistics ¶
func (s *StatisticsAPIService) GetStatistics(ctx context.Context, days int32) (openapi.ImplResponse, error)
GetStatistics - Provides statistics about user activity