๐Ÿ’พ Archived View for source.community โ€บ ckaznocha โ€บ gemini โ€บ blob โ€บ main โ€บ handler.go captured on 2023-01-29 at 03:19:44. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2022-01-08)

โžก๏ธ Next capture (2024-02-05)

๐Ÿšง View Differences

-=-=-=-=-=-=-

                                                         .
,-. ,-. . . ,-. ,-. ,-.    ,-. ,-. ,-,-. ,-,-. . . ,-. . |- . .
`-. | | | | |   |   |-'    |   | | | | | | | | | | | | | |  | |
`-' `-' `-^ '   `-' `-' :: `-' `-' ' ' ' ' ' ' `-^ ' ' ' `' `-|
                                                             /|
                                                            `-'

Profile for ckaznocha

ckaznocha / gemini

git clone https://source.community/ckaznocha/gemini.git

Branches

Log

Tree

/handler.go (main)

โ†‘ /

blob

View raw contents of /handler.go (main)

โ”€โ”€โ”€โ”€โ•ฎ
   1โ”‚ package gemini
   2โ”‚ 
   3โ”‚ import (
   4โ”‚ 	"context"
   5โ”‚ )
   6โ”‚ 
   7โ”‚ // Handler is an interface that handles Gemini incoming requests.
   8โ”‚ type Handler interface {
   9โ”‚ 	ServeGemini(context.Context, ResponseWriter, *Request)
  10โ”‚ }
  11โ”‚ 
  12โ”‚ // HandlerFunc is an adapter which allows a function to be used as a Handler.
  13โ”‚ type HandlerFunc func(context.Context, ResponseWriter, *Request)
  14โ”‚ 
  15โ”‚ // ServeGemini implements the Hander interface for a HandlerFunc.
  16โ”‚ func (f HandlerFunc) ServeGemini(ctx context.Context, w ResponseWriter, r *Request) {
  17โ”‚ 	f(ctx, w, r)
  18โ”‚ }
โ”€โ”€โ”€โ”€โ•ฏ

ยท ยท ยท

๐Ÿก Home

FAQs

Privacy Policy

Terms & Conditions

Official Gemlog

info@source.community

ยฉ 2023 source.community