Created
March 31, 2016 14:50
-
-
Save peterbourgon/79f44f89d5c334b5f05a291f25fe6bd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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