// Auto-generated by avdl-compiler v1.3.12 (https://github.com/keybase/node-avdl-compiler)
//   Input file: avdl/keybase1/backend_common.avdl

package keybase1

import (
	"github.com/keybase/go-framed-msgpack-rpc/rpc"
)

type BlockType int

const (
	BlockType_DATA BlockType = 0
	BlockType_MD   BlockType = 1
)

var BlockTypeMap = map[string]BlockType{
	"DATA": 0,
	"MD":   1,
}

var BlockTypeRevMap = map[BlockType]string{
	0: "DATA",
	1: "MD",
}

func (e BlockType) String() string {
	if v, ok := BlockTypeRevMap[e]; ok {
		return v
	}
	return ""
}

type BlockIdCombo struct {
	BlockHash string    `codec:"blockHash" json:"blockHash"`
	ChargedTo UID       `codec:"chargedTo" json:"chargedTo"`
	BlockType BlockType `codec:"blockType" json:"blockType"`
}

type ChallengeInfo struct {
	Now       int64  `codec:"now" json:"now"`
	Challenge string `codec:"challenge" json:"challenge"`
}

type BackendCommonInterface interface {
}

func BackendCommonProtocol(i BackendCommonInterface) rpc.Protocol {
	return rpc.Protocol{
		Name:    "keybase.1.backendCommon",
		Methods: map[string]rpc.ServeHandlerDescription{},
	}
}

type BackendCommonClient struct {
	Cli rpc.GenericClient
}
