Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccAuthPort ¶
type AccAuthPort interface { Signup(ctx context.Context, w http.ResponseWriter, r *http.Request) Signin(ctx context.Context, w http.ResponseWriter, r *http.Request) Signout(ctx context.Context, w http.ResponseWriter, r *http.Request) Refresh(ctx context.Context, w http.ResponseWriter, r *http.Request) DeleteAccount(ctx context.Context, w http.ResponseWriter, r *http.Request) }
type ApiPort ¶
type ApiPort interface { FindImage(ctx context.Context, w http.ResponseWriter, r *http.Request, query string, querytype string) FindImages(ctx context.Context, w http.ResponseWriter, r *http.Request, query []string, querytype string, quantity int) AddImage(ctx context.Context, w http.ResponseWriter, r *http.Request, ownerUuid string) DeleteImage(ctx context.Context, w http.ResponseWriter, r *http.Request, ownerUuid string) UpdateImage(ctx context.Context, w http.ResponseWriter, r *http.Request, ownerUuid string) }
implement http server interface methods
type CdnPort ¶
type CdnPort interface { UploadFile(ctx context.Context, image core.Image, buf bytes.Buffer) (string, error) DeleteFile(ctx context.Context, uuid string) error UpdateFile(ctx context.Context, image core.Image) error }
Implements the filedb methods
type DbAccAuthPort ¶
type DbEloSystemPort ¶
type DbImagePort ¶
type DbImagePort interface { FindImage(ctx context.Context, querytype string, query string) (*core.Image, error) FindImages(ctx context.Context, querytype string, query []string, quantity int) ([]core.Image, error) StoreImage(ctx context.Context, image *core.Image) error UpdateImage(ctx context.Context, image *core.Image) error DeleteImage(ctx context.Context, uuid string) error }
implement the mongodb interface methods
type DbKeyAuthPort ¶
type DbKeyAuthPort interface { StoreKey(ctx context.Context, newKey string, username string) error DeleteKey(ctx context.Context, username string) error AuthenticateKey(ctx context.Context, key string) (string, bool) GetKey(ctx context.Context, userrname string) (string, error) GetUserUUID(ctx context.Context, key string) (string, error) }
type EloSystemPort ¶
type KeyAuthPort ¶
type KeyAuthPort interface { UpdateKey(ctx context.Context, w http.ResponseWriter, r *http.Request) DeleteKey(ctx context.Context, w http.ResponseWriter, r *http.Request) AuthenticateKey(ctx context.Context, w http.ResponseWriter, r *http.Request) bool ShowKey(ctx context.Context, w http.ResponseWriter, r *http.Request) FindOwner(ctx context.Context, w http.ResponseWriter, r *http.Request) (string, error) }
Click to show internal directories.
Click to hide internal directories.