api

package
v0.0.0-...-362d7c3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(lg *zap.Logger, db *ent.Client, tg *telegram.Client, resolver peer.Resolver, ht http.Client) *Server

func (Server) GetTelegramBadge

func (s Server) GetTelegramBadge(ctx context.Context, params oas.GetTelegramBadgeParams) (*oas.SVGHeaders, error)

func (Server) GetTelegramOnlineBadge

func (s Server) GetTelegramOnlineBadge(ctx context.Context, params oas.GetTelegramOnlineBadgeParams) (*oas.SVGHeaders, error)

func (Server) GithubStatus

func (s Server) GithubStatus(ctx context.Context, req oas.StatusNotification, params oas.GithubStatusParams) error

func (Server) NewError

func (s Server) NewError(ctx context.Context, err error) *oas.ErrorStatusCode

func (*Server) Status

func (s *Server) Status(ctx context.Context) (*oas.Status, error)

Jump to

Keyboard shortcuts

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