server

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayServer

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

func (*GatewayServer) Close

func (gs *GatewayServer) Close() error

func (*GatewayServer) Serve

func (gs *GatewayServer) Serve() error

type GrpcServer

func (*GrpcServer) Close

func (gs *GrpcServer) Close() error

func (*GrpcServer) CreateAccount

func (gs *GrpcServer) CreateAccount(ctx context.Context, request *postaradminv1.CreateAccountRequest) (response *postaradminv1.CreateAccountResponse, err error)

func (*GrpcServer) CreateSpace

func (gs *GrpcServer) CreateSpace(ctx context.Context, request *postaradminv1.CreateSpaceRequest) (response *postaradminv1.CreateSpaceResponse, err error)

func (*GrpcServer) CreateTemplate

func (gs *GrpcServer) CreateTemplate(ctx context.Context, request *postaradminv1.CreateTemplateRequest) (response *postaradminv1.CreateTemplateResponse, err error)

func (*GrpcServer) DeleteTemplate

func (gs *GrpcServer) DeleteTemplate(ctx context.Context, request *postaradminv1.DeleteTemplateRequest) (response *postaradminv1.DeleteTemplateResponse, err error)

func (*GrpcServer) GetAccount

func (gs *GrpcServer) GetAccount(ctx context.Context, request *postaradminv1.GetAccountRequest) (response *postaradminv1.GetAccountResponse, err error)

func (*GrpcServer) GetSpace

func (gs *GrpcServer) GetSpace(ctx context.Context, request *postaradminv1.GetSpaceRequest) (response *postaradminv1.GetSpaceResponse, err error)

func (*GrpcServer) GetTemplate

func (gs *GrpcServer) GetTemplate(ctx context.Context, request *postaradminv1.GetTemplateRequest) (response *postaradminv1.GetTemplateResponse, err error)

func (*GrpcServer) ListAccounts

func (gs *GrpcServer) ListAccounts(ctx context.Context, request *postaradminv1.ListAccountsRequest) (response *postaradminv1.ListAccountsResponse, err error)

func (*GrpcServer) ListSpaces

func (gs *GrpcServer) ListSpaces(ctx context.Context, request *postaradminv1.ListSpacesRequest) (response *postaradminv1.ListSpacesResponse, err error)

func (*GrpcServer) ListTemplates

func (gs *GrpcServer) ListTemplates(ctx context.Context, request *postaradminv1.ListTemplatesRequest) (response *postaradminv1.ListTemplatesResponse, err error)

func (*GrpcServer) Serve

func (gs *GrpcServer) Serve() error

func (*GrpcServer) UpdateAccount

func (gs *GrpcServer) UpdateAccount(ctx context.Context, request *postaradminv1.UpdateAccountRequest) (response *postaradminv1.UpdateAccountResponse, err error)

func (*GrpcServer) UpdateSpace

func (gs *GrpcServer) UpdateSpace(ctx context.Context, request *postaradminv1.UpdateSpaceRequest) (response *postaradminv1.UpdateSpaceResponse, err error)

func (*GrpcServer) UpdateTemplate

func (gs *GrpcServer) UpdateTemplate(ctx context.Context, request *postaradminv1.UpdateTemplateRequest) (response *postaradminv1.UpdateTemplateResponse, err error)

type Server

type Server interface {
	Serve() error
	Close() error
}

func New

func New(conf *config.PostarAdminConfig, spaceService service.SpaceService, accountService service.AccountService, templateService service.TemplateService) (Server, error)

func NewGatewayServer

func NewGatewayServer(conf *config.PostarAdminConfig, spaceService service.SpaceService, accountService service.AccountService, templateService service.TemplateService) (Server, error)

func NewGrpcServer

func NewGrpcServer(conf *config.PostarAdminConfig, spaceService service.SpaceService, accountService service.AccountService, templateService service.TemplateService) (Server, error)

Jump to

Keyboard shortcuts

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