Documentation ¶
Index ¶
- func DeleteUser(w http.ResponseWriter, token *auth.Token) error
- func GetOption() option.ClientOption
- func SetOption(credFile string)
- func VerifyUser(w http.ResponseWriter, reqToken string) (*auth.Token, error)
- type Collection
- func (f *Collection) Delete(key string) error
- func (f *Collection) Get(key string) (string, error)
- func (f *Collection) GetMap(key string) (map[string]string, error)
- func (f *Collection) Keys() []string
- func (f *Collection) Set(key, value string) error
- func (f *Collection) SetMap(key string, data map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func DeleteUser(w http.ResponseWriter, token *auth.Token) error
DeleteUser はユーザ情報を抹消します。
func GetOption ¶
func GetOption() option.ClientOption
GetOption はOptionを生成します。(未設定の場合は admin.json を読みます)
func VerifyUser ¶
VerifyUser はIDトークンを検証した結果を返します。
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
Collection はfirestoreのコレクションを表します。
func NewCollection ¶
func NewCollection(collection string) *Collection
NewCollection は Collecction のインスタンスを生成します。
func (*Collection) Delete ¶
func (f *Collection) Delete(key string) error
Delete は Collection からキーを削除します。
func (*Collection) Get ¶
func (f *Collection) Get(key string) (string, error)
Get は Collection でキーから値を検索します。
func (*Collection) GetMap ¶
func (f *Collection) GetMap(key string) (map[string]string, error)
GetMap は生のドキュメントを取得します。
func (*Collection) Set ¶
func (f *Collection) Set(key, value string) error
Set は Collection に値を保存します。
Click to show internal directories.
Click to hide internal directories.