app

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentCourseAgree

func GetCurrentCourseAgree() string

func GetCurrentFinetuneAgree

func GetCurrentFinetuneAgree() string

func GetCurrentUserAgree

func GetCurrentUserAgree() string

func Init

func Init(c *Config)

Types

type AgreementType

type AgreementType = string
const (
	Course   AgreementType = "course"
	Finetune AgreementType = "finetune"
	User     AgreementType = "user"
)

type Config

type Config struct {
	CourseRevision   string `json:"course_revision"`
	UserRevision     string `json:"user_revision"`
	FinetuneRevision string `json:"finetune_revision"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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