ta

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

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

Go to latest
Published: Jul 27, 2015 License: Apache-2.0 Imports: 10 Imported by: 2

README

TA 情報提供機能

UI 用に TA 情報を提供する。

1. 動作仕様

TA の指定は、TA の ID をパーセントエンコードし、パスにつなげて行う。

TA 情報は以下を最上位要素として含む JSON で返される。

  • client_name
    • 名前。 言語タグが付くことがある。
1.1. リクエスト例
GET /api/info/ta/https%3A%2F%2Fta.example.org
Host: idp.example.org
1.2. レスポンス例
HTTP/1.1 200 OK
Content-Type: application/json

{
    "client_name#en": "That TA",
    "client_name#ja": "あの TA"
}

Documentation

Overview

TA 情報を返す API。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	stopper *server.Stopper,
	path string,
	db tadb.Db,
	debug bool,
) http.Handler

path: 提供する URL パス。 db: TA 情報 DB。

Types

This section is empty.

Jump to

Keyboard shortcuts

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