Documentation ¶ Index ¶ func FromContext(ctx context.Context) (db.User, bool) func NewContext(ctx context.Context, user db.User) context.Context type LookupUserStore type Syncer func NewSyncer(users UserStore) *Syncer func (s *Syncer) Middleware() func(http.Handler) http.Handler type UserStore Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FromContext ¶ func FromContext(ctx context.Context) (db.User, bool) func NewContext ¶ func NewContext(ctx context.Context, user db.User) context.Context Types ¶ type LookupUserStore ¶ type LookupUserStore interface { GetUserByUsername(ctx context.Context, arg db.GetUserByUsernameParams) (db.User, error) } type Syncer ¶ type Syncer struct { // contains filtered or unexported fields } func NewSyncer ¶ func NewSyncer(users UserStore) *Syncer func (*Syncer) Middleware ¶ func (s *Syncer) Middleware() func(http.Handler) http.Handler type UserStore ¶ type UserStore interface { UpsertUserByUsername(ctx context.Context, arg db.UpsertUserByUsernameParams) (db.User, error) } Source Files ¶ View all Source files sync.go Click to show internal directories. Click to hide internal directories.