Documentation ¶
Index ¶
- func Setup(apiMux *mux.Router, cfg *config.Dendrite, cacheIn service.Cache, ...)
- type CombineReader
- type ForwardRequest
- type MultiForwardPublicRequest
- type MultiForwardRequest
- type Processor
- func (p *Processor) BuildBaseURL(host string, urlPath ...string) string
- func (p *Processor) CheckEmote(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) Download(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) Favorite(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) FavoriteEmote(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) FavoriteFileEmote(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) FedDownload(rw http.ResponseWriter, req *http.Request)
- func (p *Processor) FedThumbnail(rw http.ResponseWriter, req *http.Request)
- func (p *Processor) ListEmote(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) MultiForward(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) MultiResForward(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) SingleForward(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) Thumbnail(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) Unfavorite(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) Upload(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) WaitEmote(rw http.ResponseWriter, req *http.Request, device *authtypes.Device)
- func (p *Processor) WriteHeader(resp *http.Response, w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup( apiMux *mux.Router, cfg *config.Dendrite, cacheIn service.Cache, feddomains *common.FedDomains, repo *repos.DownloadStateRepo, rpcCli *common.RpcClient, consumer *download.DownloadConsumer, idg *uid.UidGenerator, )
Types ¶
type CombineReader ¶
type CombineReader struct {
// contains filtered or unexported fields
}
type ForwardRequest ¶
type ForwardRequest struct { Type string `json:"type"` Content string `json:"content"` From string `json:"from"` SrcNetdiskID string `json:"srcNetdiskID"` SrcRoom string `json:"srcRoom"` // 留给大数据用 SrcPeople string `json:"srcPeople"` // 留给大数据用 Public bool `json:"public"` // 只有forward用到 Traceable bool `json:"traceable"` }
type MultiForwardRequest ¶
type MultiForwardRequest struct { Type string `json:"type"` Content string `json:"content"` From string `json:"from"` TargetRooms []string `json:"target_rooms"` TargetUsers []string `json:"target_users"` SrcNetdiskID string `json:"srcNetdiskID"` SrcRoom string `json:"srcRoom"` // 留给大数据用 SrcPeople string `json:"srcPeople"` // 留给大数据用 Public bool `json:"public"` Traceable bool `json:"traceable"` SecurityWall interface{} `json:"securityWall"` }
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor( cfg *config.Dendrite, histogram mon.LabeledHistogram, repo *repos.DownloadStateRepo, rpcCli *common.RpcClient, consumer *download.DownloadConsumer, idg *uid.UidGenerator, mediaURI []string, ) *Processor
func (*Processor) BuildBaseURL ¶
func (*Processor) CheckEmote ¶
func (*Processor) FavoriteEmote ¶
func (*Processor) FavoriteFileEmote ¶
func (*Processor) FedDownload ¶
func (p *Processor) FedDownload(rw http.ResponseWriter, req *http.Request)
func (*Processor) FedThumbnail ¶
func (p *Processor) FedThumbnail(rw http.ResponseWriter, req *http.Request)
func (*Processor) MultiForward ¶
func (*Processor) MultiResForward ¶
func (*Processor) SingleForward ¶
func (*Processor) Unfavorite ¶
func (*Processor) WriteHeader ¶
func (p *Processor) WriteHeader(resp *http.Response, w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.