adoc

package
v0.0.0-...-8e4247c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAdocToMessage

func FromAdocToMessage(a *Adoc) *adocv1.Adoc

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

func FromMessageToAdoc(a *adocv1.Adoc) *Adoc

FromMessageToAdoc transforms format from Message to Adoc

func (*Adoc) String

func (a *Adoc) String() string

type Server

type Server struct {
	adocv1.UnimplementedAdocServiceServer
}

Server implements AdocServiceServer

func (*Server) Index

Index returns *adocv1.IndexResponse and error

func (*Server) Register

func (s *Server) Register(server *grpc.Server)

Register registers the server service on the given gRPC server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL