admin

package
v0.0.0-...-0a0123b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 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 Admin

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

func NewAdmin

func NewAdmin(db *db.Service, b *bucket.Builder) *Admin

func (*Admin) DeleteChallenge

func (s *Admin) DeleteChallenge(ctx context.Context, req *connect.Request[xctf.DeleteChallengeRequest]) (*connect.Response[xctf.Empty], error)

func (*Admin) ExportChallenge

func (s *Admin) ExportChallenge(ctx context.Context, c *connect.Request[chalgen.Node]) (*connect.Response[xctf.ExportChallengeResponse], error)

func (*Admin) GetAllChallenges

func (s *Admin) GetAllChallenges(ctx context.Context, request *connect.Request[xctf.GetAllChallengesRequest]) (*connect.Response[xctf.GetAllChallengesResponse], error)

func (*Admin) GetComments

func (s *Admin) GetComments(ctx context.Context, request *connect.Request[xctf.GetCommentsRequest]) (*connect.Response[xctf.GetCommentsResponse], error)

func (*Admin) GetTeamsProgress

func (s *Admin) GetTeamsProgress(ctx context.Context, request *connect.Request[xctf.GetTeamsProgressRequest]) (*connect.Response[xctf.GetTeamsProgressResponse], error)

func (*Admin) GetUserGraph

func (s *Admin) GetUserGraph(ctx context.Context, request *connect.Request[xctf.GetUserGraphRequest]) (*connect.Response[xctf.GetUserGraphResponse], error)

func (*Admin) GetWriteup

func (s *Admin) GetWriteup(ctx context.Context, request *connect.Request[xctf.GetWriteupRequest]) (*connect.Response[xctf.GetWriteupResponse], error)

func (*Admin) ImportChallenge

func (s *Admin) ImportChallenge(ctx context.Context, c *connect.Request[xctf.ImportChallengeRequest]) (*connect.Response[xctf.ImportChallengeResponse], error)

func (*Admin) Readdir

func (s *Admin) Readdir(ctx context.Context, c *connect.Request[xctf.ReaddirRequest]) (*connect.Response[xctf.ReaddirResponse], error)

func (*Admin) Remove

func (s *Admin) Remove(ctx context.Context, c *connect.Request[xctf.RemoveRequest]) (*connect.Response[xctf.RemoveResponse], error)

func (*Admin) SetComputer

func (s *Admin) SetComputer(ctx context.Context, c *connect.Request[xctf.SetComputerRequest]) (*connect.Response[xctf.Empty], error)

func (*Admin) SetHomePage

func (s *Admin) SetHomePage(ctx context.Context, request *connect.Request[xctf.SetHomePageRequest]) (*connect.Response[xctf.Empty], error)

func (*Admin) SubmitComment

func (s *Admin) SubmitComment(ctx context.Context, request *connect.Request[xctf.SubmitCommentRequest]) (*connect.Response[xctf.Empty], error)

func (*Admin) SubmitGrade

func (s *Admin) SubmitGrade(ctx context.Context, request *connect.Request[xctf.SubmitGradeRequest]) (*connect.Response[xctf.Empty], error)

func (*Admin) UpsertChallenge

func (s *Admin) UpsertChallenge(ctx context.Context, req *connect.Request[xctf.UpsertChallengeRequest]) (*connect.Response[xctf.Empty], error)

Jump to

Keyboard shortcuts

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