You've already forked focalboard
							
							
				mirror of
				https://github.com/mattermost/focalboard.git
				synced 2025-10-31 00:17:42 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			389 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			389 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package model
 | |
| 
 | |
| import (
 | |
| 	"encoding/json"
 | |
| 	"io"
 | |
| )
 | |
| 
 | |
| type Sharing struct {
 | |
| 	ID         string `json:"id"`
 | |
| 	Enabled    bool   `json:"enabled"`
 | |
| 	Token      string `json:"token"`
 | |
| 	ModifiedBy string `json:"modifiedBy"`
 | |
| 	UpdateAt   int64  `json:"update_at,omitempty"`
 | |
| }
 | |
| 
 | |
| func SharingFromJSON(data io.Reader) Sharing {
 | |
| 	var sharing Sharing
 | |
| 	json.NewDecoder(data).Decode(&sharing)
 | |
| 	return sharing
 | |
| }
 |