social

package
v0.0.0-...-d2cf98a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(ctx context.Context) *zap.Logger

Types

type CombinedContext

type CombinedContext struct {
	SocialContext
}

func NewContext

func NewContext(db *sqlxcache.DB, rootPath string) (cc *CombinedContext)

type CombinedSchema

type CombinedSchema struct {
}

func (*CombinedSchema) SharedProject

func (s *CombinedSchema) SharedProject(ctx context.Context, w http.ResponseWriter, req *http.Request, payload *SharedProjectPayload) ([]*Meta, error)

func (*CombinedSchema) SharedWorkspace

func (s *CombinedSchema) SharedWorkspace(ctx context.Context, rw http.ResponseWriter, req *http.Request, payload *SharedWorkspacePayload) ([]*Meta, error)

type Meta

type Meta struct {
	Attribute string
	Key       string
	Value     string
}

func NewMetaName

func NewMetaName(key, value string) *Meta

func NewMetaProperty

func NewMetaProperty(key, value string) *Meta

type MetaSchema

type MetaSchema interface {
	SharedProject(ctx context.Context, w http.ResponseWriter, req *http.Request, payload *SharedProjectPayload) ([]*Meta, error)
	SharedWorkspace(ctx context.Context, w http.ResponseWriter, req *http.Request, payload *SharedWorkspacePayload) ([]*Meta, error)
}

type SharedProjectPayload

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

type SharedWorkspacePayload

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

type SocialContext

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

func (*SocialContext) Register

func (sc *SocialContext) Register(r *mux.Router)

func (*SocialContext) SharedProject

func (sc *SocialContext) SharedProject(ctx context.Context, w http.ResponseWriter, req *http.Request) ([]*Meta, error)

func (*SocialContext) SharedWorkspace

func (sc *SocialContext) SharedWorkspace(ctx context.Context, w http.ResponseWriter, req *http.Request) ([]*Meta, error)

Jump to

Keyboard shortcuts

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