service

package
v0.0.0-...-b8c5a9a Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright © 2021 Anton Kaiukov <batko@batko.ru>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2021 Anton Kaiukov <batko@batko.ru>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2021 Anton Kaiukov <batko@batko.ru>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCTrackerService

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

func NewGCTrackerService

func NewGCTrackerService(d data.GCTrackerData) *GCTrackerService

func (*GCTrackerService) AddCase

func (s *GCTrackerService) AddCase(formData url.Values)

func (*GCTrackerService) ChangePwd

func (s *GCTrackerService) ChangePwd(r *http.Request) error

func (*GCTrackerService) DelCases

func (s *GCTrackerService) DelCases(cases []string)

func (*GCTrackerService) GetResetToken

func (s *GCTrackerService) GetResetToken() string

func (*GCTrackerService) GetSession

func (s *GCTrackerService) GetSession(r *http.Request)

func (*GCTrackerService) IsAuthenticated

func (s *GCTrackerService) IsAuthenticated() bool

func (*GCTrackerService) RenderCases

func (s *GCTrackerService) RenderCases() string

func (*GCTrackerService) RenderError

func (s *GCTrackerService) RenderError(errorMsg string) string

func (*GCTrackerService) RenderPage

func (s *GCTrackerService) RenderPage(content, errorMsg string) string

func (*GCTrackerService) ResetPwd

func (s *GCTrackerService) ResetPwd(r *http.Request) error

func (*GCTrackerService) SetAuthenticated

func (s *GCTrackerService) SetAuthenticated(auth bool)

func (*GCTrackerService) SetResetToken

func (s *GCTrackerService) SetResetToken(token string)

func (*GCTrackerService) ShowCases

func (s *GCTrackerService) ShowCases() string

func (*GCTrackerService) ShowChangePwd

func (s *GCTrackerService) ShowChangePwd(errorMsg string) string

func (*GCTrackerService) ShowResetPwd

func (s *GCTrackerService) ShowResetPwd(errorMsg string) string

func (*GCTrackerService) ShowSignIn

func (s *GCTrackerService) ShowSignIn(errorMsg string) string

func (*GCTrackerService) ShowSignUp

func (s *GCTrackerService) ShowSignUp(errorMsg string) string

func (*GCTrackerService) ShowStyle

func (s *GCTrackerService) ShowStyle() string

func (*GCTrackerService) ShowUsers

func (s *GCTrackerService) ShowUsers() string

func (*GCTrackerService) SignIn

func (s *GCTrackerService) SignIn(form url.Values) error

func (*GCTrackerService) SignUp

func (s *GCTrackerService) SignUp(formData url.Values) error

func (*GCTrackerService) UpdateCases

func (s *GCTrackerService) UpdateCases() error

Jump to

Keyboard shortcuts

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