Back to godoc.org

Package http

v0.0.0-...-60837bc
Latest Go to latest

The latest major version is .

Published: Sep 12, 2020 | License: Apache-2.0 | Module: github.com/UnderTreeTech/waterdrop

Index

type Address

type Address struct {
	Mobile  string         `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile" form:"mobile" validate:"required,mobile,min=6,max=20"`
	Address string         `protobuf:"bytes,2,opt,name=address,proto3" json:"address" form:"address" validate:"required,max=100"`
	App     *AppReq        `protobuf:"bytes,3,opt,name=app,proto3" json:"app"`
	Reply   *SkipUrlsReply `protobuf:"bytes,4,opt,name=reply,proto3" json:"reply"`
	Resp    []*AppReply    `protobuf:"bytes,5,rep,name=resp,proto3" json:"resp"`
}

type AppReply

type AppReply struct {
	Appkey    string `protobuf:"bytes,1,opt,name=appkey,proto3" json:"app_key"`
	Appsecret string `protobuf:"bytes,2,opt,name=appsecret,proto3" json:"app_secret"`
}

type AppReq

type AppReq struct {
	Sappkey string `protobuf:"bytes,1,opt,name=sappkey,proto3" json:"sappkey,omitempty" form:"sappkey" validate:"required"`
}

type Response

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type ServerInfo

type ServerInfo struct {
	Server      *http.Server
	ServiceInfo *registry.ServiceInfo
}

func New

func New() *ServerInfo

type SkipUrlsReply

type SkipUrlsReply struct {
	Urls []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls"`
}

type ValidateReq

type ValidateReq struct {
	Email    string     `protobuf:"bytes,1,opt,name=email,proto3" json:"email" form:"email" validate:"required,email"`
	Name     string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name" validate:"required,min=6,max=10"`
	Password string     `protobuf:"bytes,3,opt,name=password,proto3" json:"password" form:"password" validate:"required,min=6,max=10"`
	Sex      int32      `protobuf:"varint,4,opt,name=sex,proto3" json:"sex" form:"sex" validate:"required,gte=0,lte=2"`
	Age      int32      `protobuf:"varint,5,opt,name=age,proto3" json:"age" form:"age" validate:"required,gte=1,lte=60,gtefield=Sex"`
	Addr     []*Address `protobuf:"bytes,6,rep,name=addr,proto3" json:"addr" form:"addr" validate:"required,gt=0,dive"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier