Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAdocToMessage ¶
FromAdocToMessage transforms format from Adoc to Message
Types ¶
type Adoc ¶
type Adoc struct { XMLName xml.Name `json:"-" xml:"adoc"` Code int64 `json:"code" xml:"code"` Parent int64 `json:"parent" xml:"parent"` Name string `json:"name" xml:"name"` }
Adoc is administrative divisions of China https://en.wikipedia.org/wiki/Administrative_divisions_of_China
func FromMessageToAdoc ¶
FromMessageToAdoc transforms format from Message to Adoc
type Server ¶
type Server struct {
adocv1.UnimplementedAdocServiceServer
}
Server implements AdocServiceServer
func (*Server) Index ¶
func (s *Server) Index(ctx context.Context, req *adocv1.IndexRequest) (*adocv1.IndexResponse, error)
Index returns *adocv1.IndexResponse and error
Click to show internal directories.
Click to hide internal directories.