Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRoutes ¶
type AuthRoutes interface { Register(request payloads.RegisterRequest) (*payloads.TokenResponse, error) Login(request payloads.LoginRequest) (*payloads.TokenResponse, error) }
type ContractRoutes ¶
type ContractRoutes interface {
UploadContracts(request payloads.UploadContractsRequest) (*payloads.UploadContractsResponse, error)
}
type ProjectRoutes ¶
type ProjectRoutes interface { CreateProject(request payloads.ProjectRequest) (*payloads.ProjectResponse, error) GetProject(accountId, id string) (*model.Project, error) GetProjects(accountId string) (*payloads.GetProjectsResponse, error) }
type Rest ¶
type Rest struct { Auth AuthRoutes User UserRoutes Project ProjectRoutes Contract ContractRoutes }
func NewRest ¶
func NewRest( auth AuthRoutes, user UserRoutes, project ProjectRoutes, contract ContractRoutes) *Rest
type UserRoutes ¶
Click to show internal directories.
Click to hide internal directories.