srhandler

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerApiEventRoomList added in v0.3.0

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

"/ApiEventRoomList()"に対するハンドラー http://localhost:8080/apieventroomlist で呼び出される

func HandlerApiRoomStatus added in v0.2.0

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

"/ApiRoomStatus"に対するハンドラー http://localhost:8080/t009top で呼び出される

func HandlerT008topForm

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

"/t008top"に対するハンドラー http://localhost:8080/t008top で呼び出される

func HandlerT009topForm

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

"/t009top"に対するハンドラー http://localhost:8080/t009top で呼び出される

Types

type ClientInf added in v0.3.1

type ClientInf struct {
	Actime time.Time //	実行時の日時
	Fn     string    //	実行中の関数(=親の関数)の名称
	Ra     string    //	リモートアドレス
	Port   string    //	リモートポート
	Ua     string    //	ユーザーエージェント
}

func GetClientInf added in v0.3.1

func GetClientInf(
	r *http.Request,
) (
	ci *ClientInf,
	err error,
)

ファンクション名とリモートアドレス、ユーザーエージェントを表示する。

type T008top

type T008top struct {
	TimeNow    int64
	Totalcount int
	ErrMsg     string
	Eventlist  []srapi.Event
}

type T009Config

type T009Config struct {
	SR_acct      string //	SHOWROOMのアカウント名
	SR_pswd      string //	SHOWROOMのパスワード
	Category     string //	カテゴリー名
	Aplmin       int    //	訪問ルームリストの有効時間(分)
	Maxnoroom    int    //	訪問候補ルームリストの最大長
	Rvlfilename  string //	訪問済みルームリストファイル名
	Exclfilename string //	除外ルームリストファイル名
}

type T009top

type T009top struct {
	TimeNow      int64
	SR_acct      string //	SHOWROOMのアカウント名(必須ではない)
	Category     string //	カテゴリー名
	Aplmin       int    //	訪問ルームリストの有効時間(分)
	Maxnoroom    int    //	訪問候補ルームリストの最大長
	Rvlfilename  string //	訪問済みルームリストファイル名
	Exclfilename string //	除外ルームリストファイル名
	ErrMsg       string
	Lives        []srapi.Live //	配信中ルーム情報	(V2ではポインターとはしない)
}

Jump to

Keyboard shortcuts

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