serverv1

package
v0.0.0-...-576cec9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamsServer

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

TeamsServer provides all handlers for teams API.

func NewTeamsServer

func NewTeamsServer(
	cfg *config.Config,
	uploads upload.Upload,
	metricz *metrics.Metrics,
	repository repository.TeamsRepository,
) *TeamsServer

NewTeamsServer initializes the team server.

func (*TeamsServer) AttachMod

func (s *TeamsServer) AttachMod(
	ctx context.Context,
	req *connect.Request[teams.AttachModRequest],
) (*connect.Response[teams.AttachModResponse], error)

AttachMod implements the TeamsServiceHandler interface.

func (*TeamsServer) AttachPack

func (s *TeamsServer) AttachPack(
	ctx context.Context,
	req *connect.Request[teams.AttachPackRequest],
) (*connect.Response[teams.AttachPackResponse], error)

AttachPack implements the TeamsServiceHandler interface.

func (*TeamsServer) AttachUser

func (s *TeamsServer) AttachUser(
	ctx context.Context,
	req *connect.Request[teams.AttachUserRequest],
) (*connect.Response[teams.AttachUserResponse], error)

AttachUser implements the TeamsServiceHandler interface.

func (*TeamsServer) Create

func (s *TeamsServer) Create(
	ctx context.Context,
	req *connect.Request[teams.CreateRequest],
) (*connect.Response[teams.CreateResponse], error)

Create implements the TeamsServiceHandler interface.

func (*TeamsServer) Delete

func (s *TeamsServer) Delete(
	ctx context.Context,
	req *connect.Request[teams.DeleteRequest],
) (*connect.Response[teams.DeleteResponse], error)

Delete implements the TeamsServiceHandler interface.

func (*TeamsServer) DropMod

func (s *TeamsServer) DropMod(
	ctx context.Context,
	req *connect.Request[teams.DropModRequest],
) (*connect.Response[teams.DropModResponse], error)

DropMod implements the TeamsServiceHandler interface.

func (*TeamsServer) DropPack

func (s *TeamsServer) DropPack(
	ctx context.Context,
	req *connect.Request[teams.DropPackRequest],
) (*connect.Response[teams.DropPackResponse], error)

DropPack implements the TeamsServiceHandler interface.

func (*TeamsServer) DropUser

func (s *TeamsServer) DropUser(
	ctx context.Context,
	req *connect.Request[teams.DropUserRequest],
) (*connect.Response[teams.DropUserResponse], error)

DropUser implements the TeamsServiceHandler interface.

func (*TeamsServer) List

func (s *TeamsServer) List(
	ctx context.Context,
	_ *connect.Request[teams.ListRequest],
) (*connect.Response[teams.ListResponse], error)

List implements the TeamsServiceHandler interface.

func (*TeamsServer) ListMods

func (s *TeamsServer) ListMods(
	ctx context.Context,
	req *connect.Request[teams.ListModsRequest],
) (*connect.Response[teams.ListModsResponse], error)

ListMods implements the TeamsServiceHandler interface.

func (*TeamsServer) ListPacks

func (s *TeamsServer) ListPacks(
	ctx context.Context,
	req *connect.Request[teams.ListPacksRequest],
) (*connect.Response[teams.ListPacksResponse], error)

ListPacks implements the TeamsServiceHandler interface.

func (*TeamsServer) ListUsers

func (s *TeamsServer) ListUsers(
	ctx context.Context,
	req *connect.Request[teams.ListUsersRequest],
) (*connect.Response[teams.ListUsersResponse], error)

ListUsers implements the TeamsServiceHandler interface.

func (*TeamsServer) Show

func (s *TeamsServer) Show(
	ctx context.Context,
	req *connect.Request[teams.ShowRequest],
) (*connect.Response[teams.ShowResponse], error)

Show implements the TeamsServiceHandler interface.

func (*TeamsServer) Update

func (s *TeamsServer) Update(
	ctx context.Context,
	req *connect.Request[teams.UpdateRequest],
) (*connect.Response[teams.UpdateResponse], error)

Update implements the TeamsServiceHandler interface.

Jump to

Keyboard shortcuts

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