Initial Commit
This commit is contained in:
		
							
								
								
									
										27
									
								
								internal/config/config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								internal/config/config.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
package config
 | 
			
		||||
 | 
			
		||||
type Config struct {
 | 
			
		||||
	Git     Git     `toml:"git"`
 | 
			
		||||
	Webhook Webhook `toml:"webhook"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Git struct {
 | 
			
		||||
	RepoDir     string      `toml:"repoDir"`
 | 
			
		||||
	RepoURL     string      `toml:"repoURL"`
 | 
			
		||||
	Commit      Commit      `toml:"commit"`
 | 
			
		||||
	Credentials Credentials `toml:"credentials"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Credentials struct {
 | 
			
		||||
	Username string
 | 
			
		||||
	Password string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Commit struct {
 | 
			
		||||
	Name  string `toml:"name"`
 | 
			
		||||
	Email string `toml:"email"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Webhook struct {
 | 
			
		||||
	PasswordHash string `toml:"pwd_hash"`
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user