Documentation ¶
Index ¶
- func AdoptDog(myID string, dogID string) (*types.Dog, error)
- func CheckGraphQLContextMyID(p graphql.ResolveParams) error
- func GenerateJWTToken(uid string) (string, error)
- func GetDog(myID string, dogID string) (*types.Dog, error)
- func GetTrendingTwitterHashtags(rdb *redis.Client) ([]types.TwitterHashtag, error)
- func GetTwitterHashtag(text string, rdb *redis.Client) (*types.TwitterHashtag, error)
- func GetUser(id string) (*types.User, error)
- func GetUserByEmail(email string) (*types.User, error)
- func VerifyJWTTokenAndExtractMyID(r *http.Request) (string, error)
- func VerifyPassword(uid string, password string) (bool, error)
- type Config
- type CurrentTime
- type DebouncedSeed
- type Greeting
- type JWT
- type JWTTokenContent
- type Me
- type OPA
- type OPAL
- type Prediction
- type Seed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGraphQLContextMyID ¶
func CheckGraphQLContextMyID(p graphql.ResolveParams) error
func GenerateJWTToken ¶
func GetTrendingTwitterHashtags ¶
func GetTrendingTwitterHashtags(rdb *redis.Client) ([]types.TwitterHashtag, error)
func GetTwitterHashtag ¶
func GetTwitterHashtag(text string, rdb *redis.Client) (*types.TwitterHashtag, error)
Types ¶
type Config ¶
type Config struct { AppEnv string Port string GRPCServerHost string GRPCServerPort string OPAHost string OPAPort string DgraphHost string DgraphGRPCPort string RedisHost string RedisPort string RedisDB string RedisPassword string MinIOEndpoint string MinIOAccessKeyID string MinIOSecretAccessKey string TorchServeGRPCHost string TorchServeGRPCPort string OpenCensusAgentHost string OpenCensusAgentPort string JWTSecret string EnableOpenTelemetryStdoutLog string }
type CurrentTime ¶
type CurrentTime struct {
Now string `json:"now"`
}
func GetCurrentTime ¶
func GetCurrentTime() (*CurrentTime, error)
type DebouncedSeed ¶
type DebouncedSeed struct {
DebouncedSeedNumber int `json:"debouncedSeedNumber"`
}
type JWTTokenContent ¶
type JWTTokenContent struct {
ID string
}
type Me ¶
type Prediction ¶
func GetPrediction ¶
func GetPrediction(fileHeader *multipart.FileHeader) (*Prediction, error)
Source Files ¶
- adopt_dog.go
- check_graphql_context_myid.go
- debounced_seed.go
- generate_jwt_token.go
- get_config.go
- get_current_time.go
- get_dog.go
- get_greeting.go
- get_me.go
- get_opa_decision.go
- get_opal_decision.go
- get_prediction.go
- get_trending_twitter_hashtags.go
- get_twitter_hashtag.go
- get_user.go
- get_user_by_email.go
- seed.go
- sign_in.go
- verify_jwt_token_and_extract_myid.go
- verify_password.go
Click to show internal directories.
Click to hide internal directories.