MCPcopy Create free account
hub / github.com/apache/thrift / GetStruct

Method GetStruct

tutorial/go/src/handler.go:90–94  ·  view source on GitHub ↗
(ctx context.Context, key int32)

Source from the content-addressed store, hash-verified

88}
89
90func (p *CalculatorHandler) GetStruct(ctx context.Context, key int32) (*shared.SharedStruct, error) {
91 fmt.Print("getStruct(", key, ")\n")
92 v := p.log[int(key)]
93 return v, nil
94}
95
96func (p *CalculatorHandler) Zip(ctx context.Context) (err error) {
97 fmt.Print("zip()\n")

Callers 1

handleClientFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected