Documentation
¶
Index ¶
- Constants
- type Client
- type ClientOption
- type Compiler
- type CompilerConfig
- type Compilers
- type Contest
- type ContestParticipant
- type ContestSolution
- type ContestSolutions
- type ContestStandings
- type CreateCompilerForm
- type CreateContestParticipantForm
- type CreateProblemForm
- type CreateSettingForm
- type FileReader
- type PostsClient
- type Problem
- type RegisterUserForm
- type Role
- type Roles
- type ScopeUser
- type ScopeUsers
- type Setting
- type Settings
- type Solution
- type SubmitSolutionForm
- type UpdateCompilerForm
- type UpdateProblemForm
- type UpdateSettingForm
- type User
Constants ¶
View Source
const ( RegularParticipant = models.RegularParticipant UpsolvingParticipant = models.UpsolvingParticipant ManagerParticipant = models.ManagerParticipant ObserverParticipant = models.ObserverParticipant )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(endpoint string, options ...ClientOption) *Client
NewClient returns new solve API client.
type ClientOption ¶
type ClientOption = api.ClientOption
func WithSessionCookie ¶
func WithSessionCookie(value string) ClientOption
func WithTimeout ¶
func WithTimeout(timeout time.Duration) ClientOption
func WithTransport ¶
func WithTransport(transport *http.Transport) ClientOption
type CompilerConfig ¶ added in v0.2.0
type CompilerConfig = models.CompilerConfig
type ContestParticipant ¶
type ContestParticipant = api.ContestParticipant
type ContestSolution ¶
type ContestSolution = api.ContestSolution
type ContestSolutions ¶
type ContestSolutions = api.ContestSolutions
type ContestStandings ¶
type ContestStandings = api.ContestStandings
type CreateCompilerForm ¶
type CreateCompilerForm = api.CreateCompilerForm
type CreateContestParticipantForm ¶ added in v0.1.3
type CreateContestParticipantForm = api.CreateContestParticipantForm
type CreateProblemForm ¶
type CreateProblemForm = api.CreateProblemForm
type CreateSettingForm ¶ added in v0.1.2
type CreateSettingForm = api.CreateSettingForm
type FileReader ¶
type FileReader = api.FileReader
type PostsClient ¶ added in v0.2.8
type PostsClient interface { ObservePosts(ctx context.Context, r schema.ObservePostsRequest) (schema.ObservePostsResponse, error) ObservePost(ctx context.Context, r schema.ObservePostRequest) (schema.ObservePostResponse, error) CreatePost(ctx context.Context, r schema.CreatePostRequest) (schema.CreatePostResponse, error) UpdatePost(ctx context.Context, r schema.UpdatePostRequest) (schema.UpdatePostResponse, error) DeletePost(ctx context.Context, r schema.DeletePostRequest) (schema.DeletePostResponse, error) }
type RegisterUserForm ¶
type RegisterUserForm = api.RegisterUserForm
type ScopeUsers ¶
type ScopeUsers = api.ScopeUsers
type SubmitSolutionForm ¶
type SubmitSolutionForm = api.SubmitSolutionForm
type UpdateCompilerForm ¶
type UpdateCompilerForm = api.UpdateCompilerForm
type UpdateProblemForm ¶
type UpdateProblemForm = api.UpdateProblemForm
type UpdateSettingForm ¶ added in v0.1.2
type UpdateSettingForm = api.UpdateSettingForm
Click to show internal directories.
Click to hide internal directories.