RPCServer

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectRPCPayload

type ProjectRPCPayload struct {
	Id       int
	UserUuid uuid.UUID
	Name     string
	Token    string
}

func NewProjectRPCPayload

func NewProjectRPCPayload(id int, UserUuid uuid.UUID, name string, token string) *ProjectRPCPayload

type ProjectServer

type ProjectServer struct {
	// contains filtered or unexported fields
}

func NewProjectServer

func NewProjectServer(
	rpcPort int,
	log *logrus.Logger,
	projectService services.ProjectService,
) *ProjectServer

func (*ProjectServer) CreateDefaultProject

func (ps *ProjectServer) CreateDefaultProject(projectPayload ProjectRPCPayload, resp *ProjectRPCPayload) error

func (*ProjectServer) GetProject

func (ps *ProjectServer) GetProject(projectToken string, resp *ProjectRPCPayload) error

func (*ProjectServer) GetProjectList

func (ps *ProjectServer) GetProjectList(userUuid uuid.UUID, resp *[]ProjectRPCPayload) error

func (*ProjectServer) Listen

func (ps *ProjectServer) Listen(rpcPort int) error

Jump to

Keyboard shortcuts

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