Documentation ¶
Index ¶
- type DatabaseState
- type DatabaseUser
- type GoogleUserStore
- func (g GoogleUserStore) FetchUserByServiceId(serviceId string) (User, error)
- func (g GoogleUserStore) FetchUserByUserId(userId string) (User, error)
- func (g GoogleUserStore) FetchUsers() ([]User, error)
- func (g GoogleUserStore) InsertUser(serviceName string, serviceId string, username string) (User, error)
- type GoogleUserStoreProvider
- type User
- func FetchUserByServiceId(dbState DatabaseState, serviceId string) (User, error)
- func FetchUserByUserId(dbState DatabaseState, userId string) (User, error)
- func FetchUsers(dbState DatabaseState) ([]User, error)
- func InsertUser(dbState DatabaseState, serviceName string, serviceId, username string) (User, error)
- type UserStore
- type UserStoreProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseState ¶
type DatabaseState struct {
// contains filtered or unexported fields
}
func NewDatabaseState ¶
func NewDatabaseState(r *http.Request) DatabaseState
type DatabaseUser ¶
type DatabaseUser struct { ServiceName string // For now, only "twitter" ServiceId string // Identifier from the service UserId string // Unique id we come up with, a UUID Username string }
func (DatabaseUser) GetUserId ¶
func (d DatabaseUser) GetUserId() string
func (DatabaseUser) GetUsername ¶
func (d DatabaseUser) GetUsername() string
type GoogleUserStore ¶
type GoogleUserStore struct {
// contains filtered or unexported fields
}
func (GoogleUserStore) FetchUserByServiceId ¶
func (g GoogleUserStore) FetchUserByServiceId(serviceId string) (User, error)
func (GoogleUserStore) FetchUserByUserId ¶
func (g GoogleUserStore) FetchUserByUserId(userId string) (User, error)
func (GoogleUserStore) FetchUsers ¶
func (g GoogleUserStore) FetchUsers() ([]User, error)
func (GoogleUserStore) InsertUser ¶
type GoogleUserStoreProvider ¶
type GoogleUserStoreProvider struct { }
func NewUserStoreProvider ¶
func NewUserStoreProvider() GoogleUserStoreProvider
func (GoogleUserStoreProvider) NewUserStore ¶
func (g GoogleUserStoreProvider) NewUserStore(r *http.Request) UserStore
type User ¶
func FetchUserByServiceId ¶
func FetchUserByServiceId(dbState DatabaseState, serviceId string) (User, error)
func FetchUserByUserId ¶
func FetchUserByUserId(dbState DatabaseState, userId string) (User, error)
func FetchUsers ¶
func FetchUsers(dbState DatabaseState) ([]User, error)
func InsertUser ¶
func InsertUser(dbState DatabaseState, serviceName string, serviceId, username string) (User, error)
type UserStoreProvider ¶
Click to show internal directories.
Click to hide internal directories.