 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # go-msgio - Message IO
 | |
| 
 | |
| [](https://protocol.ai)
 | |
| [](https://libp2p.io/)
 | |
| [](http://webchat.freenode.net/?channels=%23libp2p)
 | |
| [](https://codecov.io/gh/libp2p/go-msgio)
 | |
| [](https://travis-ci.org/libp2p/go-msgio)
 | |
| [](https://discuss.libp2p.io)
 | |
| 
 | |
| This is a simple package that helps read and write length-delimited slices. It's helpful for building wire protocols.
 | |
| 
 | |
| ## Usage
 | |
| 
 | |
| ### Reading
 | |
| 
 | |
| ```go
 | |
| import "github.com/libp2p/go-msgio"
 | |
| rdr := ... // some reader from a wire
 | |
| mrdr := msgio.NewReader(rdr)
 | |
| 
 | |
| for {
 | |
|   msg, err := mrdr.ReadMsg()
 | |
|   if err != nil {
 | |
|     return err
 | |
|   }
 | |
| 
 | |
|   doSomething(msg)
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Writing
 | |
| 
 | |
| ```go
 | |
| import "github.com/libp2p/go-msgio"
 | |
| wtr := genReader()
 | |
| mwtr := msgio.NewWriter(wtr)
 | |
| 
 | |
| for {
 | |
|   msg := genMessage()
 | |
|   err := mwtr.WriteMsg(msg)
 | |
|   if err != nil {
 | |
|     return err
 | |
|   }
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Duplex
 | |
| 
 | |
| ```go
 | |
| import "github.com/libp2p/go-msgio"
 | |
| rw := genReadWriter()
 | |
| mrw := msgio.NewReadWriter(rw)
 | |
| 
 | |
| for {
 | |
|   msg, err := mrdr.ReadMsg()
 | |
|   if err != nil {
 | |
|     return err
 | |
|   }
 | |
| 
 | |
|   // echo it back :)
 | |
|   err = mwtr.WriteMsg(msg)
 | |
|   if err != nil {
 | |
|     return err
 | |
|   }
 | |
| }
 | |
| ```
 | |
| 
 | |
| ---
 | |
| 
 | |
| The last gx published version of this module was: 0.0.6: QmcxL9MDzSU5Mj1GcWZD8CXkAFuJXjdbjotZ93o371bKSf
 |