handler

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright 2020 Alexey Yanchenko <mail@yanchenko.me>

This file is part of the Gufo library.

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 2020 Alexey Yanchenko <mail@yanchenko.me>

This file is part of the Gufo library.

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 2020 Alexey Yanchenko <mail@yanchenko.me>

This file is part of the Gufo library.

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 2020 Alexey Yanchenko <mail@yanchenko.me>

This file is part of the Gufo library.

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 2020 Alexey Yanchenko <mail@yanchenko.me>

This file is part of the Gufo library.

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

View Source
var HeaderKeys = []string{
	"Access-Control-Allow-Origin",
	"Access-Control-Allow-Methods",
	"Access-Control-Allow-Headers",
	"Server",
	"Content-Type",
}
View Source
var HeaderValues = []string{
	"*",
	"POST, GET, OPTIONS, PUT, DELETE, TRACE, PATCH",
	"Authorization, Content-Type",
	"Gufo",
	"application/json",
}

Functions

func API

func API(w http.ResponseWriter, r *http.Request, version int)

func Confirmemail

func Confirmemail(w http.ResponseWriter, r *http.Request)

func Entrypoint

func Entrypoint()

This function will be executed when Gufo is starting

func Health

func Health(w http.ResponseWriter, r *http.Request)

func Info

func Info(w http.ResponseWriter, r *http.Request)

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

func ProcessOPTIONS

func ProcessOPTIONS(w http.ResponseWriter, r *http.Request)

func ProcessPUT

func ProcessPUT(w http.ResponseWriter, r *http.Request, t *pb.Request, version int)

func ProcessREQ

func ProcessREQ(w http.ResponseWriter, r *http.Request, t *pb.Request, version int)

func RequestInit added in v1.12.0

func RequestInit(r *http.Request) *pb.Request

func WrongRequest added in v1.12.1

func WrongRequest(w http.ResponseWriter, r *http.Request)

Types

type ConfEmailLink struct {
	Email string
	Token string
	Lang  string
}

Jump to

Keyboard shortcuts

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