Documentation ¶
Index ¶
Constants ¶
View Source
const AddReleaseType string = "add-release"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { ReleaseExchange string Broker *broker.Broker MaxReleaseCatcherMessageSize int JwtSecret string RedisClient *redis.RedisClient AccountsMongoDBClient *accounts.AccountsMongoDBClient }
func (*Handler) HandleHTTP ¶
func (handler *Handler) HandleHTTP(ctx *fasthttp.RequestCtx)
HandleHTTP processes HTTP requests with JSON body
type ReleaseFile ¶
ReleaseFile represents file content and its name
type ReleaseMessage ¶
type ReleaseMessage struct { ProjectId string `json:"projectId"` Type string `json:"type"` Payload ReleaseMessagePayload `json:"payload"` }
ReleaseMessage represents message structure for sending to queue
type ReleaseMessagePayload ¶
type ReleaseMessagePayload struct { Release string `json:"release"` Commits json.RawMessage `json:"commits,omitempty"` Files []ReleaseFile `json:"files,omitempty"` }
ReleaseMessagePayload represents payload structure of the message for sending to queue
type ResponseMessage ¶
type ResponseMessage struct { Code int `json:"code"` Error bool `json:"error"` Message string `json:"message"` }
ResponseMessage represents response message to a client
Click to show internal directories.
Click to hide internal directories.