server

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingAccessToken = errors.New("missing AccessToken in header")
)
View Source
var NoProjectAccess = errors.New("no project access")

Functions

func Entry

func Entry(
	port int,
	adminPort int,
	iam iam.IAM,
	seerOpts base.ServiceOptions,
	sources sources.Sources,
	compiler compiler.Compiler,
	filter filter.Filter,
	slideshow base.ServiceOptions,
	pubSub pubsub.PubSub,
	corsHeader string,
	log *zap.Logger,
) error

func RandStringBytesMaskImprSrcUnsafe

func RandStringBytesMaskImprSrcUnsafe(n int) string

Types

type Server

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

func NewServer

func NewServer(
	iam iam.IAM,
	seerOpts base.ServiceOptions,
	sources sources.Sources,
	compiler compiler.Compiler,
	filter filter.Filter,
	slideshow base.ServiceOptions,
	pub pubsub.Publisher,
	corsHeader string,
	log *zap.Logger,
) *Server

func (*Server) AdminListenAndServe

func (s *Server) AdminListenAndServe(port int) error

func (*Server) DeleteUser

func (s *Server) DeleteUser(ctx context.Context, req api.DeleteUser) (_ *api.Void, err error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(port int) error

func (*Server) Login

func (s *Server) Login(
	ctx context.Context,
	req api.LoginRequest,
) (*api.LoginResponse, error)

func (*Server) ProjectAccess

func (s *Server) ProjectAccess(
	ctx context.Context,
	userID string,
	projectID string,
) error

func (*Server) PushEvent

func (s *Server) PushEvent(
	ctx context.Context,
	req api.Event,
) (*api.Void, error)

type Subscription

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

Jump to

Keyboard shortcuts

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