Skip to content

Instantly share code, notes, and snippets.

@peterbourgon
Created March 31, 2016 14:50
Show Gist options
  • Save peterbourgon/79f44f89d5c334b5f05a291f25fe6bd8 to your computer and use it in GitHub Desktop.
Save peterbourgon/79f44f89d5c334b5f05a291f25fe6bd8 to your computer and use it in GitHub Desktop.
package main
import (
"errors"
"github.com/coreos/etcd/etcdserver/etcdserverpb"
"golang.org/x/net/context"
)
type myServer struct{}
func (s *myServer) Range(ctx context.Context, req *etcdserverpb.RangeRequest) (*etcdserverpb.RangeResponse, error) {
return nil, errors.New("not implemented")
}
func (s *myServer) Put(ctx context.Context, req *etcdserverpb.PutRequest) (*etcdserverpb.PutResponse, error) {
return nil, errors.New("not implemented")
}
func (s *myServer) DeleteRange(ctx context.Context, req *etcdserverpb.DeleteRangeRequest) (*etcdserverpb.DeleteRangeResponse, error) {
return nil, errors.New("not implemented")
}
func (s *myServer) Txn(ctx context.Context, req *etcdserverpb.TxnRequest) (*etcdserverpb.TxnResponse, error) {
return nil, errors.New("not implemented")
}
func (s *myServer) Compact(ctx context.Context, req *etcdserverpb.CompactionRequest) (*etcdserverpb.CompactionResponse, error) {
return nil, errors.New("not implemented")
}
func (s *myServer) Hash(ctx context.Context, req *etcdserverpb.HashRequest) (*etcdserverpb.HashResponse, error) {
return nil, errors.New("not implemented")
}
var _ etcdserverpb.KVServer = &myServer{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment