config

package
v0.0.0-...-ca8b2fb Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalServerConfig ServerConfig
	GlobalEtcdConfig   EtcdConfig
	UserClient         userservice.Client
	LectureClient      lectureservice.Client
	ChatClient         chatservice.Client
	PushClient         pushservice.Client
	QuizClient         quizservice.Client
	AgentClient        agentservice.Client
)

Functions

This section is empty.

Types

type EtcdConfig

type EtcdConfig struct {
	Host string `json:"host"`
	Port string `json:"port"`
	Key  string `json:"key"`
}

type RPCSrvConfig

type RPCSrvConfig struct {
	Name string `json:"name"`
}

type ServerConfig

type ServerConfig struct {
	Name           string       `json:"name"`
	Host           string       `json:"host"`
	Port           string       `json:"port"`
	UserSrvInfo    RPCSrvConfig `json:"user_srv"`
	LectureSrvInfo RPCSrvConfig `json:"lecture_srv"`
	ChatSrvInfo    RPCSrvConfig `json:"chat_srv"`
	PushSrvInfo    RPCSrvConfig `json:"push_srv"`
	QuizSrvInfo    RPCSrvConfig `json:"quiz_srv"`
	AgentSrvInfo   RPCSrvConfig `json:"agent_srv"`
	OtelEndpoint   string       `json:"otel_endpoint"`
}

Jump to

Keyboard shortcuts

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