service

package
v0.0.0-...-c3684ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogService

type BlogService interface {
	GetBlogsByProjectId(id string) ([]model.Blog, ErrorType, error)
	CreateBlog(projectId string, body *io.ReadCloser) (ErrorType, error)
	UpdateBlog(blogId string, projectId string, body *io.ReadCloser) (ErrorType, error)
	DeleteBlog(blogId string, projectId string) (ErrorType, error)
	GetBlog(projectId string, blogId string) (*model.Blog, ErrorType, error)
}

func BuildBlogService

func BuildBlogService(store store.Store) BlogService

type DiagramService

type DiagramService interface {
	GetDiagramsByProjectId(id string) ([]model.Diagram, ErrorType, error)
	CreateDiagram(projectId string, body *io.ReadCloser) (ErrorType, error)
	UpdateDiagram(diagramId string, projectId string, body *io.ReadCloser) (ErrorType, error)
	DeleteDiagram(diagramId string, projectId string) (ErrorType, error)
	GetDiagram(projectId string, diagramId string) (*model.Diagram, ErrorType, error)
}

func BuildDiagramService

func BuildDiagramService(store store.Store) DiagramService

type ErrorType

type ErrorType int64
const (
	DatabaseError ErrorType = iota
	JsonError
	BadRequest
	NoError
)

type GitRepoService

type GitRepoService interface {
	GetGitReposByProjectId(id string) ([]model.GitRepo, ErrorType, error)
	CreateGitRepo(projectId string, body *io.ReadCloser) (ErrorType, error)
	UpdateGitRepo(gitRepoId string, projectId string, body *io.ReadCloser) (ErrorType, error)
	DeleteGitRepo(gitRepoId string, projectId string) (ErrorType, error)
	GetGitRepo(projectId string, gitRepoId string) (*model.GitRepo, ErrorType, error)
}

func BuildGitRepoService

func BuildGitRepoService(store store.Store) GitRepoService

type NoteService

type NoteService interface {
	GetNotesByProjectId(id string) ([]model.Note, ErrorType, error)
	CreateNote(projectId string, body *io.ReadCloser) (ErrorType, error)
	UpdateNote(noteId string, projectId string, body *io.ReadCloser) (ErrorType, error)
	DeleteNote(noteId string, projectId string) (ErrorType, error)
	GetNote(projectId string, noteId string) (*model.Note, ErrorType, error)
}

func BuildNoteService

func BuildNoteService(store store.Store) NoteService

type ProjectBuildService

type ProjectBuildService interface {
	GetBuildMetaDatasByProjectId(id string) ([]model.BuildMetaData, ErrorType, error)
	CreateBuildMetaData(projectId string, body *io.ReadCloser) (ErrorType, error)
	UpdateBuildMetaData(buildId string, projectId string, body *io.ReadCloser) (ErrorType, error)
	DeleteBuildMetaData(buildId string, projectId string) (ErrorType, error)
	GetBuildMetaData(projectId string, buildId string) (*model.BuildMetaData, ErrorType, error)
	GetBuildsForProject(projectid string, buildId string) ([]model.Build, ErrorType, error)
}

func BuildProjectBuildService

func BuildProjectBuildService(store store.Store, client *github.Client) ProjectBuildService

type ProjectService

type ProjectService interface {
	GetProjectsMetaData() ([]model.ProjectMetaData, ErrorType, error)
	GetProjectMetaDataById(id string) (*model.ProjectMetaData, ErrorType, error)
	CreateProject(body *io.ReadCloser) (ErrorType, error)
	UpdateProjectMetaData(id string, body *io.ReadCloser) (ErrorType, error)
	DeleteProject(projectId string) (ErrorType, error)
}

func BuildProjectService

func BuildProjectService(store store.Store) ProjectService

type ServiceInfoService

type ServiceInfoService interface {
	GetServicesInfoByProjectId(id string) ([]model.ServiceInfo, ErrorType, error)
	CreateServiceInfo(projectId string, body *io.ReadCloser) (ErrorType, error)
	UpdateServiceInfo(serviceInfoId string, projectId string, body *io.ReadCloser) (ErrorType, error)
	DeleteServiceInfo(serviceInfoId string, projectId string) (ErrorType, error)
	GetServiceInfo(projectId string, serviceInfoId string) (*model.ServiceInfo, ErrorType, error)
}

func BuildServiceInfoService

func BuildServiceInfoService(store store.Store) ServiceInfoService

type VideoService

type VideoService interface {
	GetVideosByProjectId(id string) ([]model.Video, ErrorType, error)
	CreateVideo(projectId string, body *io.ReadCloser) (ErrorType, error)
	UpdateVideo(videoId string, projectId string, body *io.ReadCloser) (ErrorType, error)
	DeleteVideo(videoId string, projectId string) (ErrorType, error)
	GetVideo(projectId string, videoId string) (*model.Video, ErrorType, error)
}

func BuildVideoService

func BuildVideoService(store store.Store) VideoService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL