http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUseCase

type AuthUseCase = usecase.AuthUseCaseInterface

type Options

type Options func(*Server)

func WithAuthUseCase

func WithAuthUseCase(authUC AuthUseCase) Options

func WithGraphQLRepo

func WithGraphQLRepo(repo interfaces.Repository) Options

func WithGraphiQL

func WithGraphiQL(enabled bool) Options

func WithPolicy

func WithPolicy(policy interfaces.PolicyClient) Options

func WithSlackService

func WithSlackService(slackService *slack.Service) Options

func WithSlackVerifier

func WithSlackVerifier(verifier slack_model.PayloadVerifier) Options

type SNSMessage

type SNSMessage struct {
	Type             string    `json:"Type"`
	MessageId        string    `json:"MessageId"`
	Token            string    `json:"Token"`
	TopicArn         string    `json:"TopicArn"`
	Message          string    `json:"Message"`
	Timestamp        time.Time `json:"Timestamp"`
	SignatureVersion string    `json:"SignatureVersion"`
	Signature        string    `json:"Signature"`
	SigningCertURL   string    `json:"SigningCertURL"`
	SubscribeURL     string    `json:"SubscribeURL"`
}

type Server

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

func New

func New(uc UseCase, opts ...Options) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UserProfile

type UserProfile struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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